Skip to content

Instantly share code, notes, and snippets.

@wolverineks
Created September 11, 2017 20:48
Show Gist options
  • Save wolverineks/ac2d35a700935d32e21ab37cf1fe3195 to your computer and use it in GitHub Desktop.
Save wolverineks/ac2d35a700935d32e21ab37cf1fe3195 to your computer and use it in GitHub Desktop.
Better Git Log™
[format]
# automatically formats “git log”
# %h = abbreviated commit hash
# %ad = date of commit
# %an = author’s name
# %s = commit short message (synopsis)
# %C = change color of output text
# %<(50,trunc) = truncate next output to 50 chars
pretty = %C(yellow)%h %C(red)%<(14)%ad %C(blue)%<(15,trunc)%an %C(reset)%<(50,trunc)%s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment