Last Updated: February 20, 2016
·
695
· wordofchristian

git log for pros

Add this to your global .gitconfig (~/.gitconfig)

[format]
    pretty=format:%C(yellow)%h%Creset -%C(red)%d%Creset %s %Cgreen(%ar) %C(bold blue)<%an>%Creset   

It will make the get log much much more legible.

Picture

Bonus tip:

Install the git-smart gem

> gem install git-smart

Then run this from the command line:

> git smart-log  --all

It shows all branches / stashes / refs in the repo and shows them in a nice graph train track display.

Picture