How do I remove all of a certain type of file from the Repository? I\'m using
git filter-branch --index-filter \'git rm -rf --cached **/*.jar\'
The easiest way I've found is to use the BFG Repo-Cleaner
The instructions on the project page are clear. The command you would use is something like:
bfg --delete-files "*.jar" my-repo.git
BFG will clean the history of the repo of all files ending in the .jar extension. You can then inspect the result before pushing it back to the server.