Last active
March 21, 2019 11:33
-
-
Save RockyRx/833d0457f75c62c2c5d80abdb578e704 to your computer and use it in GitHub Desktop.
Renaming a GIT branch - local and remotly
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
git branch -m <old_name> <new_name> #1 | |
git push origin --delete <old_name> #2 | |
git branch --unset-upstream #3 - This step is required since GIT is still holds pull/push merge configuration with the old branch. | |
git push --set-upstream origin <new_name> #4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment