Clone times are 12 minutes. You suspect someone committed huge files years ago. Need to find them before excising.
rev-list + cat-file -s + sort surfaces the largest blobs in history.
Hard · 3 steps · +700 XP
This scenario walks through 3 steps, in order:
Try the terminal first — you learn more by doing. When you want to check yourself, here is the command for each step.
git count-objects -vHgit rev-list --objects --allgit gc --aggressive --prune=nowUse git-sizer or `git rev-list --objects --all` to audit history weight.