Skip to content

Instantly share code, notes, and snippets.

@chreke
Created May 27, 2015 07:02
Show Gist options
  • Save chreke/da4420237dd77567cdf6 to your computer and use it in GitHub Desktop.
Save chreke/da4420237dd77567cdf6 to your computer and use it in GitHub Desktop.
Show remotes sorted by 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