Advertisement
Guest User

Untitled

a guest
Dec 11th, 2016
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. git branch -m old_branch new_branch # Rename branch locally
  2. git push origin :old_branch # Delete the old branch
  3. git push --set-upstream origin new_branch # Push the new branch and set local branch to track the new remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement