Skip to content

Instantly share code, notes, and snippets.

@totocaster
Created June 2, 2014 15:35
Show Gist options
  • Save totocaster/5bf7f162b12999e7e6aa to your computer and use it in GitHub Desktop.
Save totocaster/5bf7f162b12999e7e6aa to your computer and use it in GitHub Desktop.
My .gitconfig aliases. I will post more updates as I progress.
[alias]
ci = commit
co = checkout
st = status
lg = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(blue)%h%C(reset) - %C(green)%ar%C(reset) %C(black)%s%C(reset) %C(dim black)[%an]%C(reset)%C(red)%d%C(reset)' --all # git log with lot of detail and tree-view
ll = log --pretty=format:'%C(blue)%h%Cred%d %Creset%s%Cblue %C(dim black)[%an]%C(reset)' --decorate # short and practical version of alias.lg
dfl = diff --cached HEAD^ #diff last commit
la = "!git config -l | grep alias | cut -c 7-" # list of all aliases, just to remember them all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment