Removing files from git history - bad revision error

git

Solution

Solved... I took out the space after the backslash which I'd been putting in before the `--prune-empty` part, and it works as expected now! No idea why it works though....

Problem

I am following the instructions on Github (https://help.github.com/articles/remove-sensitive-data/) to tidy up a messy repository. I have successfully cleared out all the .csv files using ``` git filter-branch --force --index-filter \ 'git rm --cached --ignore-unmatch *.csv' \ --prune-empty --tag-name-filter cat -- --all ``` And now need to remove all the .docx files. However, when I use exactly the same command with *.docx instead, I get an error saying: `fatal: bad revision ' --prune-empty'` I pushed to the origin on github, and cloned a fresh copy before doing this second lot of updates. I'm not sure what I'm doing wrong/differently that is causing this error. Any help greatly appreciated :)

Original source