Skip to content

Instantly share code, notes, and snippets.

@pedroreys
Created June 21, 2012 00:45
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pedroreys/2963187 to your computer and use it in GitHub Desktop.
Save pedroreys/2963187 to your computer and use it in GitHub Desktop.
Alias to generate pretty git log with graph of all branches
[alias]
    lg = log --graph --pretty=format:'%C(yellow)%d%Creset %C(cyan)%h%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=short --all

This alias is going to generate an output like this:

git log example output

@juanplopes
Copy link

Todos usa.

@rponte
Copy link

rponte commented Apr 2, 2013

I've been using this one, https://gist.github.com/rponte/2955444

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