Skip to content

Instantly share code, notes, and snippets.

@obokaman-com
Created April 4, 2019 21:19
Show Gist options
  • Save obokaman-com/463621c094af954ae6d2a6d192f75201 to your computer and use it in GitHub Desktop.
Save obokaman-com/463621c094af954ae6d2a6d192f75201 to your computer and use it in GitHub Desktop.
List all branches, ordered by oldes ones
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr -- %an <%ae>\t" $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