-
-
Save iradofurioso/bbfb6d749189758630ca62d1f514fd31 to your computer and use it in GitHub Desktop.
Renaming Branch GIt the Right Way
This file contains hidden or 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 main master | |
git fetch origin | |
git branch -u origin/master master | |
git remote set-head origin -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment