Last Updated: February 25, 2016
·
323
· jondruse

Git Log that's worth something

in ~/.gitconfig

[alias]
    lg = log -20 --graph --pretty=format:'%C(yellow)%h%Creset -%C(bold red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative

use it!

$ git lg # shows 20 commits by default

$git lg -100 #show 100 items

I didn't write this, I adapted it from https://www.destroyallsoftware.com