I accidentally put a large tif file at the top level of a project. Found out when I tried to upload to github with an error similar to this:
remote: error: File 30.trans.cp.tif is 490.38 MB; this exceeds GitHub's file size limit of 100.00 MB
Fair enough, so I deleted the file manually (using the Finder in macOS, committed changes (I can't say what I saw when I did the commit). I then tried to push again and got a similar error.
Then tried:
git rm 30.trans.cp.tif
fatal: pathspec '30.trans.cp.tif' did not match any files
Then I checked out a branch and made a chance or two and recommitted, merged back to master (hoping that things would fix themselves) and tried pushing again and still the same problem. I removed the file from the Trash, put it back at the top level, committed it, then git rm 30.trans.cp.tif
, committed and pushed but git push
still had the same problem.
I just tried adding 30.trans.cp.tif
to .gitignore
but that didn't help either.
How do I get Git to not see this non-existent file anymore?