TIL how to print git remote branches sorted by last commit date
One-liner for listing remote git branches sorted by the last commit date for each branch (gist with source):
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