Advertisement
Guest User

Untitled

a guest
Jun 19th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. git log --branches --not --remotes # Show unpushed commits
  2. git log origin/BRANCH_NAME..BRANCH_NAME # Show unpshed commits in selected branch
  3.  
  4. git branch -m OLD_BRANCH NEW_BRANCH # Rename branch locally
  5. git push origin :OLD_BRANCH # Delete the old branch
  6. git push --set-upstream origin NEW_BRANCH # Push the new branch, set local branch to track the new remote
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement