Created
October 4, 2020 02:49
-
-
Save rana01645/80e79abc355e4e25c2af71ac52c0f51d to your computer and use it in GitHub Desktop.
Rename branch git
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
# checkout to old_named branch | |
git checkout <old_name> | |
# create new named branch | |
git branch -m <new_name> | |
# push new named branch to remote | |
git push origin -u <new_name> | |
# delete old named branch | |
git push origin --delete <old_name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment