daily pastebin goal
74%
SHARE
TWEET

Untitled

a guest Jun 19th, 2017 40 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
Top