nehamoopen / digital-garden

https://nehamoopen.github.io/digital-garden/
Creative Commons Zero v1.0 Universal
0 stars 0 forks source link

renaming master to main on github #47

Open nehamoopen opened 1 year ago

nehamoopen commented 1 year ago

You can first change the default branch name online: https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/managing-branches-in-your-repository/renaming-a-branch

If you have a local clone, you can update it by running the following commands.

git branch -m master main
git fetch origin
git branch -u origin/main main
git remote set-head origin -a