Skip to content

Instantly share code, notes, and snippets.

@emmanuelnk
Last active January 6, 2020 07:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save emmanuelnk/91d948f8c6a25a27133c5baac7e980cd to your computer and use it in GitHub Desktop.
Save emmanuelnk/91d948f8c6a25a27133c5baac7e980cd to your computer and use it in GitHub Desktop.
Git Recent: Add git alias to display recently accessed branches in descending order (and with color!)
[alias]
recent = "!r(){ 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|column -ts'|'; }; r"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment