Skip to content

Instantly share code, notes, and snippets.

@HerbCaudill
Last active May 20, 2021 10:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HerbCaudill/446033a8512b9f8b94608bd798d59fab to your computer and use it in GitHub Desktop.
Save HerbCaudill/446033a8512b9f8b94608bd798d59fab to your computer and use it in GitHub Desktop.
rename master to main
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