Created
September 6, 2013 18:12
-
-
Save milabs/6467676 to your computer and use it in GitHub Desktop.
git - rename branch (local and remote)
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 local branch | |
git branch -m old-branch-name new-branch-name | |
#delete remote branch with old name | |
git push origin :old-branch-name | |
#create remote renamed branch | |
git push origin new-branch-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment