Created
September 5, 2017 15:47
-
-
Save jdrury/a88988940eeeb624d613d188b84e6f9e to your computer and use it in GitHub Desktop.
bash script to show git branches by date
This file contains hidden or 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
for k in `git branch|perl -pe s/^..//`;do echo -e `git show --pretty=format:"%Cgreen%ci %Cblue%cr%Creset" $k|head -n 1`\\t$k;done|sort -r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment