Skip to content

Instantly share code, notes, and snippets.

@barn
Created April 18, 2018 18:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barn/4828813a36a2a5335894a294ad3dd31c to your computer and use it in GitHub Desktop.
Save barn/4828813a36a2a5335894a294ad3dd31c to your computer and use it in GitHub Desktop.
Add this to your git config (found via some stackoverflow, and beaten till it worked)
[alias]
recent = "!r() { \
git for-each-ref --color=always --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' \
| column -ts'|' \
| cut -c -$(tput cols) \
;}; r"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment