I want to remove a file from my GitHub history. It was pushed and committed many times. I'm using the next filter-branch command:
git filter-branch --index-filter 'git rm --cached "app/src/main/java/com/corecz/gitfilter/ui/TypingTestActivity.java"' HEAD
It says:
fatal: pathspec 'app/src/main/java/com/corecz/gitfilter/ui/TypingTestActivity.java' did not match any files
Do I specify the path wrong? I have it both in my local and remote repositories. I'm executing this command from the top level of my project (it doesn't allow me to do otherwise).