March 10, 2014

git log enhancement

II found this little edit in Coderwall today. It is a change to the settings in the git log, to receive a nicely formatted report instead os the default one.

To have it as a reference, I am copying it here:

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"