Skip to content

Instantly share code, notes, and snippets.

@felipendc
Forked from ccopsey/gist:9866a0bcb0b39ade04fe
Last active May 5, 2020 10:07
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 felipendc/7ad57d1db32715c32be3c67ef7268c5e to your computer and use it in GitHub Desktop.
Save felipendc/7ad57d1db32715c32be3c67ef7268c5e to your computer and use it in GitHub Desktop.
Rename master branch on GitHub
git branch -m master newname
git push origin newname
# Change "Default Branch" in settings/options in GitHub
git push origin :master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment