Last active
January 23, 2018 03:52
-
-
Save deoren/5a94381592d264305dc96f475dc767e2 to your computer and use it in GitHub Desktop.
Rename Git branches
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 --move old_branch new_branch | |
git checkout new_branch | |
git push --set-upstream origin new_branch | |
git push origin --delete old_branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As of the time this Gist entry was created, GitHub does not support notifications for comments for mentions to Gist entries (see isaacs/github#21 for details). Please contact me via Twitter or file an issue in the deoren/leave-feedback repo (created for that very purpose) if you wish to receive a response for your feedback. Thank you in advance!