git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| awk '/^blob/ {print substr($0,6)}' \
| sort -r --numeric-sort --key=2 \
| gcut --complement --characters=13-40 \
| gnumfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest | head
Last active
October 29, 2020 12:35
-
-
Save rahul286/6f2e73b75c6d91e0f0854c77ee07bb6d to your computer and use it in GitHub Desktop.
Git list largest files
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment