Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Show configured git aliases
- alias.aliases !git config --get-regexp alias
- # Fetch and show all refs - good for seeing upstream branch names
- alias.refs !git fetch origin && git show-ref
- # Pull an upstream branch and switch to it
- alias.pull-upstream !f() { git checkout -b "$1" origin/"$1"; git pull origin "$1"; }; f
Add Comment
Please, Sign In to add comment