Skip to content

Instantly share code, notes, and snippets.

@tzmartin
Created December 8, 2018 16:46
Show Gist options
  • Save tzmartin/49e3928933fe3dd270a610567ceb865b to your computer and use it in GitHub Desktop.
Save tzmartin/49e3928933fe3dd270a610567ceb865b to your computer and use it in GitHub Desktop.
Pretty git "railroad track" log report
git log --graph --pretty=\"format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset'\" --abbrev-commit --date=relative
@tzmartin
Copy link
Author

tzmartin commented Dec 8, 2018

You can save this as an alias in .git/config:

[alias]
  report = "log [insert CLI]"

Then run: git report

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