Skip to content

Instantly share code, notes, and snippets.

@lancebecker
Created May 27, 2015 16:59
Show Gist options
  • Save lancebecker/4ee4e981362fa19e970e to your computer and use it in GitHub Desktop.
Save lancebecker/4ee4e981362fa19e970e to your computer and use it in GitHub Desktop.
Handy git aliases
alias gti="git"
alias g='git'
alias gs='git status -sb'
alias gl='git log'
alias ga='git add'
alias gc='git commit'
alias gca='git commit -a'
alias gco='git checkout'
alias gm='git commit --amend'
alias gb='git branch'
alias gbn='git checkout -b'
alias gd='clear && git diff'
alias gdm='git diff | mvim -'
alias gll='git log --graph --pretty="format:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset"'
alias gp='git fetch --prune'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment