Skip to content

Instantly share code, notes, and snippets.

@crazybyte
Created March 5, 2013 09:09
Show Gist options
  • Save crazybyte/5088962 to your computer and use it in GitHub Desktop.
Save crazybyte/5088962 to your computer and use it in GitHub Desktop.
Useful git commands and aliases
  • Current branch local name:
git config alias.lbranch-name 'rev-parse --abbrev-ref HEAD'
git lbranch-name
  • Remote tracking branch name:
git config alias.rbranch-name 'rev-parse --symbolic-full-name --abbrev-ref @{u}'
git rbranch-name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment