Created
June 10, 2016 08:23
-
-
Save SkyzohKey/c04b81e286a838da367e2265ac768bd5 to your computer and use it in GitHub Desktop.
Rename a git branch locally and remotly (don't do this for branch that have pull-request or that are worked on by multiple peoples)
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 # Delete and recreate with the new name. | |
git push origin :old-branch # Delete the branch on origin remote. | |
git push origin new-branch # Push the renamed branch on origin remote. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment