Created
October 3, 2017 20:17
-
-
Save lucymtc/f1a05fcc4a1aaf4f2fafd59cb8a97cb8 to your computer and use it in GitHub Desktop.
Rename git branch local & 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
| 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