This is a follow up to my previous post here. I'm trying to remove a large file that I committed to git. Based on the suggestion given in my previous post, I tried
git filter-branch --force --index-filter "git rm --cached --ignore-unmatch folder/Unconfirmed 866711.crdownload" --prune-empty --tag-name-filter cat -- --all
Following the above command, I tried to push all the changes
git push origin --force --all
However, I got the same error that was displayed before using filter-branch
remote: error: File folder/Unconfirmed 866711.crdownload is 486.30 MB; this exceeds GitHub's file size limit of 100.00 MB
Alternatively, I also tried
git add --all
git filter-branch -f --index-filter "git rm --cached --ignore-unmatch folder/Unconfirmed 866711.crdownload" HEAD
But, I get the following
Cannot rewrite branches: Your index contains uncommitted changes.
I'm not sure if I have missed any command or flags. Any suggestions?