Skip to content

Instantly share code, notes, and snippets.

@marc0der
Created October 18, 2012 09:51
Show Gist options
  • Save marc0der/3910791 to your computer and use it in GitHub Desktop.
Save marc0der/3910791 to your computer and use it in GitHub Desktop.
Add this to your .gitconfig for a colourful log that shows diverging/merging branches.
[alias]
vlog = log --graph --date-order --date=relative --pretty=format:'%C(cyan)%h: %Cblue - %an - %Cgreen %C(cyan)%ar:%Creset%n%s%n' --color
@timyates
Copy link

I use:

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

for a similar result ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment