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'
Either git is not expanding globs, or it isn't expanding **
in the way I'm expecting.
You simply have to run this in order to remove all your jars from the index:
git rm -r --cached **/*.jar
Run this command from your root directory of the project and it will clean up and will remove all your file only from the staging area.