Skip to content

Instantly share code, notes, and snippets.

@jaredmorrow
Created October 10, 2012 18:49
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredmorrow/3867631 to your computer and use it in GitHub Desktop.
Save jaredmorrow/3867631 to your computer and use it in GitHub Desktop.
Git Log
[alias]
lg80 = "!git log --graph --color=always --abbrev-commit --date=relative --pretty=format:'%x00%h%x00%s%x00%cd%x00%an%x00%d' | gawk -F '\\0' '{ printf \"%s\\033[31m%s\\033[0m %-50s \\033[32m%14s\\033[0m \\033[30;1m%s\\033[0m\\033[33m%s\\n\", $1, $2, gensub(/(.{49}).{2,}/, \"\\\\1…\",\"g\",$3), $4, $5, $6 }' | less -R"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment