source: https://stackoverflow.com/a/42544963/659715
Sorts largest files last. First column is the git object id. Second column is size in bytes.
git rev-list --objects --all |
git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' |
sed -n 's/^blob //p' |
sort --numeric-sort --key=2 |
cut -c 1-12,41- |