Last Updated: February 25, 2016
·
560
· kormie

My git log

git log --graph --pretty="format:%C(yellow)%h%Cred%d%Creset %s %C(white) %C(cyan)%an%Creset, %C(green)%ar%Creset"

4 Responses
Add your response

wow it's look very pretty ;)

over 1 year ago ·

Difficult to turn this into a git alias; ended up putting it in my .zshrc file. Nice.

over 1 year ago ·

Yea, I have it aliased as "log" in my .(bash|zsh)rc files

over 1 year ago ·

Thanks for the tip. And here's a git alias:
lg = log --graph --pretty='format:%C(yellow)%h%Cred%d%Creset %s %C(white) %C(cyan)%an%Creset, %C(green)%ar%Creset'

This works fine for me.

over 1 year ago ·