Nicer git log

Another really nice addition to to git aliases – git log is particularly ugly. This one I found here

Basically turn this:

AwZKW

into this:

tSgaU

Using:

git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

Or as an alias in your ~/.bashrc ~/.zshrc:

alias gitlg="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"