Skip to content

Instantly share code, notes, and snippets.

@joel
Created July 6, 2012 10:07
Show Gist options
  • Save joel/3059347 to your computer and use it in GitHub Desktop.
Save joel/3059347 to your computer and use it in GitHub Desktop.
Git Alias
alias gs='git status && git branch'
alias gsa='git status && git branch -a'
alias gp='git push && git branch'
alias gc='git commit -v -a'
alias gcb='git checkout'
alias gnb='git checkout -b'
alias ga='git add .'
alias gl='git log && git branch'
alias gln='git log -n 1 && git branch'
alias gd='git log --diff-filter=D --summary'
alias grev-list='git rev-list -n 1 HEAD --' # git rev-list -n 1 HEAD -- <file_path>
alias gb='git branch'
alias glp="git log --pretty=format:'%Cred%h%Creset - %C(yellow)%ae%Creset - %Cgreen%cd%Creset - %s%Creset' --abbrev-commit --date=iso"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment