Last active
August 29, 2015 13:55
-
-
Save ryoppy/8779800 to your computer and use it in GitHub Desktop.
ブランチを更新日時順に並べるワンライナー。git branch sort by update time.
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
for cid in $(git branch -av | grep -v "> origin" | awk '{print $2}'); do; git show --pretty="%ct@%cn@%s" $cid | head -1; done | sort | gawk -F "@" '{print strftime("%c", $1) " : " $2 " : " $3}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment