Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- git branch -m old-name new-name # Rename your local branch.
- git push origin :old-name new-name # Delete the old-name remote branch and push the new-name local branch.
- # Switch to the branch (if you are not there)
- git push origin -u new-name # Reset the upstream branch for the new-name local branch.
Add Comment
Please, Sign In to add comment