Last Updated: February 25, 2016
·
595
· johnnywey

Purty Git History

Can't remember where I found this so I apologize if I'm duplicating an already known solution.

To get a really pretty git log, add this to your git config:

git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"

then, type

git lg

into your shell and watch the magic.