After renaming master to main on GitHub, run:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
git fetch --prune
Use the first line to replace master with main in a private repo.
After renaming master to main on GitHub, run:
git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a
git fetch --prune
Use the first line to replace master with main in a private repo.