Created
May 9, 2016 15:13
-
-
Save Olousouzian/027df6669051661d4e213c0d904f3438 to your computer and use it in GitHub Desktop.
List GIT branches by update date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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