I have a Git repository with several huge media files (images and audio files). Several versions of these media files have been successively commited to the repo. The files
I have a script (github gist here) to remove a selection of unwanted folders from the entire history of a git repo, or to delete all but the latest version of a folder.
It's hard-coded to assume that all git repositories are in ~/repos, but that's easy to change. It should also be easy to adapt to work with individual files.