繁体   English   中英

文件不存在,但git认为它确实存在

[英]A file doesn't exist but git thinks it does

怎么会?

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 ...

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

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

GitHub有关于如何从现有提交中删除大文件的文档。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM