Skip to content

Instantly share code, notes, and snippets.

@Androguide
Created February 11, 2014 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Androguide/8936881 to your computer and use it in GitHub Desktop.
Save Androguide/8936881 to your computer and use it in GitHub Desktop.
Improve git log command by displaying all commits on one line, with different colors for the commit SHA, author, message & commit date. Also displays the branch visualisation. Screenshot: http://goo.gl/lb9gyx
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment