OpenScienceOfficeHours / osoh_website

The Website of Open Science Office Hours
https://openscienceofficehours.github.io/osoh_website/
MIT License
3 stars 0 forks source link

rename principle branch to "main"? #1

Closed koudyk closed 1 year ago

koudyk commented 1 year ago

https://www.jumpingrivers.com/blog/git-moving-master-to-main/

koudyk commented 1 year ago

to rename your branches locally, run

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