Guest User

Untitled

a guest
Jul 18th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. # Show the upstream tracking branch for HEAD
  4. git rev-parse --abbrev-ref --symbolic-full-name '@{u}'
  5.  
  6. # Show the upstream tracking branch for `my-branch`
  7. git rev-parse --abbrev-ref --symbolic-full-name 'my-branch@{u}'
  8.  
  9. # List each local branch along with its upstream tracking branch
  10. git for-each-ref --format='%(refname:short) <- %(upstream:short)' refs/heads
Add Comment
Please, Sign In to add comment