Rename your Master Branch

git
Copy this post

Rename your Master Branch

git branch -m master main
git push -u origin main