Created
January 24, 2019 13:09
-
-
Save codersofthedark/95861b681900edb01d6c08311e5fe05a to your computer and use it in GitHub Desktop.
This file contains 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 branch on local | |
git branch -m old-name new-name | |
#delete old branch at origin and push new branch to origin | |
git push origin :old-name new-name | |
#reset the upstream for local new branch | |
git push origin -u new-name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment