Created
August 1, 2012 16:05
-
-
Save 0b10011/3228241 to your computer and use it in GitHub Desktop.
Rename branch locally and for origin
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
# Rename branch locally | |
git branch -m oldName newName | |
# Push renamed branch to origin | |
git push origin newName | |
# Remove original branch from origin | |
git push origin :oldName |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment