Skip to content

Instantly share code, notes, and snippets.

@fuzzmz
Last active December 24, 2015 12:58
Show Gist options
  • Save fuzzmz/6800890 to your computer and use it in GitHub Desktop.
Save fuzzmz/6800890 to your computer and use it in GitHub Desktop.
Git pretty graphical log

git config --global alias.lg "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"

This will display:

  • one commit per line
  • show graph of commits
  • abbreviated commit IDs
  • dates relative to now
  • show commit references
  • colors
  • author of the commit

It will look like this:

Git graphical log

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