Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@robertkraig
Created September 29, 2017 22:48
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save robertkraig/7eb43b3a3cc649a8706b33c7be7f464a to your computer and use it in GitHub Desktop.
Save robertkraig/7eb43b3a3cc649a8706b33c7be7f464a to your computer and use it in GitHub Desktop.
Get information on all topic branches related to their last commit date.
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment