Skip to content

Instantly share code, notes, and snippets.

@mchurichi
Created September 21, 2017 18:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mchurichi/184934c48eb9125f1c1b1d4f3b33f76f to your computer and use it in GitHub Desktop.
Save mchurichi/184934c48eb9125f1c1b1d4f3b33f76f to your computer and use it in GitHub Desktop.
git aliases
# logs
# short form, with colors and branch/tag annotations
ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate
# changed files per commit
ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat
# no color
lnc = log --pretty=format:"%h\\ %s\\ [%cn]"
# one line commits
lds = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=short # git lds -1 (long standup)
# one line commits with relative dates (standup: git ld -1)
ld = log --pretty=format:"%C(yellow)%h\\ %ad%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --date=relative
# simple one line commits
le = log --oneline --decorate # short log
filelog = log -u
fl = log -u
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment