Skip to content

Instantly share code, notes, and snippets.

@jordansissel
Created December 18, 2013 23:35
Show Gist options
  • Save jordansissel/8031741 to your computer and use it in GitHub Desktop.
Save jordansissel/8031741 to your computer and use it in GitHub Desktop.
One-liner to find git commits with files larger than 300kb
% 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