Last active
May 29, 2025 13:50
-
-
Save anvk/6de5ed16f271a65dec739b61ebdd5b63 to your computer and use it in GitHub Desktop.
"git recent" command
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
# add this to the global git config "git config --global --edit" | |
[alias] | |
recent = "!r() { count=$1; git for-each-ref --sort=-committerdate refs/heads --format='%(HEAD)%(color:yellow)%(refname:short)|%(color:bold green)%(committerdate:relative)|%(color:blue)%(subject)|%(color:magenta)%(authorname)%(color:reset)' --color=always --count=${count:=10} | column -ts'|';}; r" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment