Skip to content

Instantly share code, notes, and snippets.

@anvk
Last active May 29, 2025 13:50
Show Gist options
  • Save anvk/6de5ed16f271a65dec739b61ebdd5b63 to your computer and use it in GitHub Desktop.
Save anvk/6de5ed16f271a65dec739b61ebdd5b63 to your computer and use it in GitHub Desktop.
"git recent" command
# 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