Last active
May 20, 2021 10:25
-
-
Save HerbCaudill/446033a8512b9f8b94608bd798d59fab to your computer and use it in GitHub Desktop.
rename master to main
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 master main | |
git push -u origin main | |
git push origin --delete master | |
@REM will probably get an error on the last line | |
@REM go to https://github.com/XXXXX/XXXXX/settings/branches and change default branch | |
@REM then retry the last line |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment