Guest User

Untitled

a guest
Feb 19th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. git branch -m old-name new-name # Rename your local branch.
  2. git push origin :old-name new-name # Delete the old-name remote branch and push the new-name local branch.
  3. # Switch to the branch (if you are not there)
  4. git push origin -u new-name # Reset the upstream branch for the new-name local branch.
Add Comment
Please, Sign In to add comment