DEV Community

loading...

Discussion on: I love git log

Collapse
dmfay profile image
Dian Fay

I forget where I found this:

alias gtree='git log --graph --abbrev-commit --decorate --date=relative --format=format:'\''%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'\'' --all'

Then gtree in your repo.

Collapse
aurelkurtula profile image
aurel kurtula

This is great, thanks for sharing.

Collapse
latentfuss profile image
John Thompson

OoOoOo me Gusta!

Collapse
sunbingfeng profile image
sunbingfeng

Yeah, you could add git alias to long command.

Collapse
citizen428 profile image
Michael Kohl

So far I just used git log --oneline --decorate --all --graph, but I'll definitely add the --date=relative bit now.

Collapse
vguarnaccia profile image
Vincent Guarnaccia

I'm totally going to borrow this. I add a '%G?' to my format so it's easy to see which commits are signed or not.