Created
April 18, 2018 18:01
-
-
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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