Skip to content

Instantly share code, notes, and snippets.

@jamiew jamiew/git-latest
Created Nov 7, 2014

What would you like to do?
"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
You can’t perform that action at this time.