find_large_files_in_git.sh 290 B

123456
  1. git rev-list --objects --all |
  2. git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
  3. sed -n 's/^blob //p' |
  4. sort --numeric-sort --key=2 |
  5. cut -c 1-12,41- |
  6. $(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest