Skip to content

Instantly share code, notes, and snippets.

@jonathands
Forked from metrofx/glog
Last active June 2, 2020 13:00
Show Gist options
  • Save jonathands/09f8ad41279ce450d14574249c445494 to your computer and use it in GitHub Desktop.
Save jonathands/09f8ad41279ce450d14574249c445494 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment