Skip to content

Instantly share code, notes, and snippets.

@ryoppy
Last active August 29, 2015 13:55
Show Gist options
  • Save ryoppy/8779800 to your computer and use it in GitHub Desktop.
Save ryoppy/8779800 to your computer and use it in GitHub Desktop.
ブランチを更新日時順に並べるワンライナー。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