Created
May 17, 2017 12:47
-
-
Save elderfo/f0afe022f6784eefd50b7758320b5ac3 to your computer and use it in GitHub Desktop.
Rename git branch
This file contains 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
git branch -m old_branch new_branch # perform the rename | |
git push origin :old_branch # delete remote branch | |
git push --set-upstream origin new_branch # push to remote, setting the remote branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment