Skip to content

Instantly share code, notes, and snippets.

@tyhenry
Last active November 29, 2020 17:05
Show Gist options
  • Save tyhenry/42a9ed374cc6d03819c9bfe8fb0a9a63 to your computer and use it in GitHub Desktop.
Save tyhenry/42a9ed374cc6d03819c9bfe8fb0a9a63 to your computer and use it in GitHub Desktop.
# quick git CLI command to view latest commits across all refs on a repo:
# paste this to create alias
git config --global alias.refs "for-each-ref refs/ --sort=committerdate --format='%(color:red)%(committerdate:short) %(color:yellow)%(objectname:short) %(align:25,left)%(color:cyan)%(refname:short)%(end) %(color:magenta)%(subject) %(color:green)%(authorname)'"
# use command
git refs
@peterobbin
Copy link

This is very useful! Thanks for sharing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment