Created
February 8, 2017 12:03
-
-
Save chrisedington/d5d06c81f290a9a0ef3e6926b9502d86 to your computer and use it in GitHub Desktop.
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
# Rename local branch | |
git branch -m old new | |
# Remove old branch | |
git push origin :old | |
# Create and push the new branch and set the local branch to track the new remote branch | |
git push --set-upstream origin new |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment