Skip to content

Instantly share code, notes, and snippets.

@wadinj
Created March 26, 2018 23:46
Show Gist options
  • Save wadinj/dbed57eeee8f0f0b14d923023d73262f to your computer and use it in GitHub Desktop.
Save wadinj/dbed57eeee8f0f0b14d923023d73262f to your computer and use it in GitHub Desktop.
.gitconfig
[log]
date = relative
[format]
pretty = format:%C(auto,yellow)%h%C(auto,blue)%>(12,trunc)%ad %C(auto,green)%<(7,trunc)%aN%C(auto,reset)%s%C(auto,red)% gD% D
[alias]
last = log -1 HEAD
[alias]
tree = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment