Removing files from git history - bad revision error
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....
Git should run from either cmd.exe or bash.
The problem is the use of '
in your command. Windows only uses "
.
The command you are looking for is:
git filter-branch --force --index-filter \
"git rm --cached --ignore-unmatch *.csv" \
--prune-empty --tag-name-filter cat -- --all