Skip to content

Instantly share code, notes, and snippets.

@febeling
Created April 27, 2015 08:40
Show Gist options
  • Save febeling/10f0f8f8bd3e2e4faeba to your computer and use it in GitHub Desktop.
Save febeling/10f0f8f8bd3e2e4faeba to your computer and use it in GitHub Desktop.
[alias]
di = diff
co = checkout
br = branch
ci = commit
st = status
lg = log -p
unstage = reset HEAD --
last = log -1 HEAD
l = log --graph --pretty=format':%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset'
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
le = log --oneline --decorate
filelog = log -u
fl = log -u
dl = "!git ll -1"
dlc = diff --cached HEAD^
la = "!git config -l | grep alias | cut -c 7-"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment