Skip to content

Instantly share code, notes, and snippets.

@weisjohn
Created June 22, 2012 17:49
Show Gist options
  • Save weisjohn/2974191 to your computer and use it in GitHub Desktop.
Save weisjohn/2974191 to your computer and use it in GitHub Desktop.
An alias that pretty-prints git logs as graphs
# this came from jtaby http://www.slideshare.net/jtaby/tools-and-techniques-for-faster-development slide 94
alias gl="git log --graph --pretty=format:'%Cred%h%Creset %C(cyan)%an%Creset - %C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment