Guest User

Untitled

a guest
Jul 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. # Show configured git aliases
  2. alias.aliases !git config --get-regexp alias
  3.  
  4. # Fetch and show all refs - good for seeing upstream branch names
  5. alias.refs !git fetch origin && git show-ref
  6.  
  7. # Pull an upstream branch and switch to it
  8. alias.pull-upstream !f() { git checkout -b "$1" origin/"$1"; git pull origin "$1"; }; f
Add Comment
Please, Sign In to add comment