Skip to content

Instantly share code, notes, and snippets.

@Olousouzian
Created May 9, 2016 15:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Olousouzian/027df6669051661d4e213c0d904f3438 to your computer and use it in GitHub Desktop.
Save Olousouzian/027df6669051661d4e213c0d904f3438 to your computer and use it in GitHub Desktop.
List GIT branches by update date
#!/bin/bash
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 | less
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment