Nice git log

27-03-2019

To see a short and nice log in git, add this to ~/.gitconfig

[alias]
lg = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches

Now you can use is as

git lg

Back