Skip to content

Instantly share code, notes, and snippets.

@jstaffans
Created May 22, 2014 12:00
Show Gist options
  • Save jstaffans/93ce59d540de66f0c9c0 to your computer and use it in GitHub Desktop.
Save jstaffans/93ce59d540de66f0c9c0 to your computer and use it in GitHub Desktop.
.gitconfig alias section
[alias]
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
dl = "!git ll -1"
dlc = diff --cached HEAD^
cp = cherry-pick
st = status -s
cl = clone
ci = commit
co = checkout
br = branch
diff = diff --word-diff
dc = diff --cached
pu = pull --rebase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment