You have already performed a filter-branch operation. After filter-branch, Git keeps refs to the old commits around, in case something goes wrong.
You can find those in .git/refs/original/…
. Either delete that directory and all files within, or use the -f
flag to force Git to delete the old references.
git filter-branch -f \
--index-filter 'git rm --cached --ignore-unmatch Rakefile' HEAD