Skip to content

Instantly share code, notes, and snippets.

@Xrayez
Forked from ccopsey/gist:9866a0bcb0b39ade04fe
Last active April 29, 2020 23:12
Show Gist options
  • Save Xrayez/3af32fbacae5eb720704d36ff4868efc to your computer and use it in GitHub Desktop.
Save Xrayez/3af32fbacae5eb720704d36ff4868efc 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 --delete origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment