git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
This will display:
- one commit per line
- show graph of commits
- abbreviated commit IDs
- dates relative to now
- show commit references
- colors
- author of the commit
It will look like this: