文件没有';不存在,但git认为存在

文件没有';不存在,但git认为存在,git,Git,为什么 git push origin master ...... remote: error: GH001: Large files detected. remote: error: Trace: fdsfdsfdsfds..... remote: error: See http://git.io/iEPt8g for more information. remote: error: File some_file.so is 125.70 MB; this exceeds GitHub's f

为什么

git push origin master
......
remote: error: GH001: Large files detected.
remote: error: Trace: fdsfdsfdsfds.....
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File some_file.so is 125.70 MB; this exceeds GitHub's file size limit of 100.00 MB
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ...
但是


很可能是您提交了该文件,然后在以后的提交中删除了它。GitHub拒绝存在该文件的提交

ls some_file.so
ls: cannot access some_file.so: No such file or directory


$ git rm --cached some_file.so
fatal: pathspec 'some_file.so' did not match any files