Created
July 18, 2022 22:09
-
-
Save kujenga/88e75742e0949da653d7cd76a9d3237a to your computer and use it in GitHub Desktop.
Steps to fully rename the a branch from master to main, from GitHub instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git branch -m master main | |
git fetch origin | |
git branch -u origin/main main | |
git remote set-head origin -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment