I have a 300 MB Git repository. The total size of my currently checked-out files is 2 MB, and the total size of the rest of the Git repository is 298 MB. This is basically a code-only repository that should not be more than a few MB.
I suspect someone accidentally committed some large files (video, images, etc.), and then removed them... but not from Git, so the history still contains useless large files. How can find the large files in the Git history? There are more than 400 commits, so going one-by-one is not practical.
Note: my question is not about how to remove the file, but how to find it in the first place.