【发布时间】:2013-08-30 05:06:49
【问题描述】:
我正在尝试将一些更改推送到我的 github 存储库,但由于 git 认为存储库中有一个大文件,因此推送失败。
remote: Error code: 38865a38ccad9b1d9f394c35344906e6
remote: warning: Error GH413: Large files detected.
remote: warning: See http://git.io/iEPt8g for more information.
remote: error: File videos/Lecture2.mp4 is 134.01 MB; this exceeds GitHub's file size limit of 100 MB
但文件 videos/Lecture2.mp4 不在存储库中。也没有视频目录。
关于如何删除此文件以便我可以推送其他更改的任何想法?
【问题讨论】:
-
你怎么确定它不在存储库中?
-
该文件是否存在于您的历史记录中?它不必存在于工作副本的当前状态中,Git 想要推送它,它只需要在你的历史中存在一次,然后它仍然会在你的仓库中,即使你从最近提交中代码的当前状态。
-
如果您输入
git log --oneline --name-status --patch,然后在less寻呼机中输入/Lecture2.mp4,您会在提交历史记录中看到该文件吗?
标签: git