I've renamed the master branch to main. If you have local copies, you'll have to rename your local branch. If you have admin access, be very careful about pushes, as it's easy to recreate the old master branch accidentally. Updating existing repo:
Get on old master branch: git checkout master.
rename your local master to main using git branch -m main master.
change the upstream branch using git branch --set-upstream-to origin/main
I've renamed the master branch to main. If you have local copies, you'll have to rename your local branch. If you have admin access, be very careful about pushes, as it's easy to recreate the old master branch accidentally. Updating existing repo:
git checkout master
.git branch -m main master
.git branch --set-upstream-to origin/main
git pull --prune
.