Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ブランチを更新日時順に並べるワンライナー。git branch sort by update time.
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