Skip to content

Instantly share code, notes, and snippets.

@ericluria
Created May 25, 2018 19:13
Show Gist options
  • Save ericluria/8f1e0296be04511aec4224e87cb3548e to your computer and use it in GitHub Desktop.
Save ericluria/8f1e0296be04511aec4224e87cb3548e to your computer and use it in GitHub Desktop.
Set a global alias to view recent branches with `git recent`
git config --global alias.recent "for-each-ref --sort=committerdate refs/heads/ --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(color:red)%(objectname:short)%(color:reset) - %(contents:subject) - %(authorname) (%(color:green)%(committerdate:relative)%(color:reset))'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment