Last Updated: February 25, 2016
·
335
· l-lin

Prettify your git log

git log can be quite verbose and may difficult to find a specific commit when your repository have several branches.

Here is an alias that will prettify your logs:

$ 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"

Result as shown in the screenshot:

Picture

Source (FR): http://putaindecode.fr/posts/git/boutez-les-bugs-domptez-votre-historique/