Pretty git log

Pretty git log

For nicer git log output, you can add the following to .gitconfig.:

[alias]

    lg = log --graph --pretty=format:'%Cred%h%Creset [%Cgreen%cd%Creset] %C(bold blue)%<(15)%an%Creset %<(10)-%C(yellow)%d%Creset %s' --abbrev-commit --date=format:'%Y-%m-%d %H:%M:%S'

Leave a Reply

Your email address will not be published. Required fields are marked *