Created
April 2, 2018 23:08
-
-
Save jamesattard/4082ee01a3500e21f9b28b5df43a74cc to your computer and use it in GitHub Desktop.
Rename git branch
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
git branch -m old_branch new_branch | |
git push --set-upstream origin new_branch | |
git push origin :old_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment