Skip to content

Instantly share code, notes, and snippets.

@jamiew
Created November 7, 2014 22:31
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 jamiew/7f621be148ef61bc0e0f to your computer and use it in GitHub Desktop.
Save jamiew/7f621be148ef61bc0e0f to your computer and use it in GitHub Desktop.
"git latest" command will show you all branches by last-updated date
for ref in $(git for-each-ref --sort=-committerdate --format="%(refname)" refs/heads/ refs/remotes ); do git log -n1 $ref --pretty=format:"%Cgreen%cr%Creset %C(yellow)%d%Creset %C(bold blue)<%an>%Creset%n" | cat ; done | awk '! a[$0]++'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment