Skip to content

Instantly share code, notes, and snippets.

@metrofx
Created February 12, 2014 07:56
Show Gist options
  • Save metrofx/8951594 to your computer and use it in GitHub Desktop.
Save metrofx/8951594 to your computer and use it in GitHub Desktop.
Pretty git log, displays 20 last commits.
#!/bin/sh
git --no-pager log -n 20 --graph --pretty=format:'%Cred%h%Creset %an: %s - %Creset %C(yellow)%d%Creset %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
@heliopassarelli
Copy link

Rly sweet, ty guy

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