Created
February 25, 2021 05:34
-
-
Save acook/4602431ff376ba38c658a399314501b9 to your computer and use it in GitHub Desktop.
Rename local branch from master to main using git commandline
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment