Created
December 18, 2013 23:35
-
-
Save jordansissel/8031741 to your computer and use it in GitHub Desktop.
One-liner to find git commits with files larger than 300kb
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
% git rev-list HEAD | xargs -n1 sh -c 'git ls-tree -lr $1 | awk "\$4 > (300*1024) { print \"size:\",\$4, \$5 }" | sed -e "s,^,commit:$1 ,"' - | |
commit:fd93322c903a49febe8ad454c9e03a7e86327389 size: 69535125 debian/debian/logstash.war |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment