Created
April 17, 2018 22:45
-
-
Save barn/e11440955e873dad4b71f627f357c293 to your computer and use it in GitHub Desktop.
Use list of branches by age
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
~/.gitconfig | |
[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