【发布时间】:2015-11-02 04:01:41
【问题描述】:
我有一个相当大的.framework 文件,由于某种原因,Git LFS 无法正常工作,所以我决定忽略它,以免它被推送。
- 我已将其添加到我的
.gitignore。 -
我从终端运行了这 3 个命令
git rm -r --cached . git add . git commit -m "fixed untracked files" 我确认
.framework不再被跟踪。-
当我再次尝试推送提交时,我仍然收到文件太大的错误。
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com. remote: error: Trace: 6b97634aa8b5de75e8affdcb19d13b98 remote: error: See http://git.io/iEPt8g for more information. remote: error: File path/to/My.framework/Versions/A/My is 101.13 MB; this exceeds GitHub's file size limit of 100.00 MB 我也完全删除了该文件,它仍在尝试推送它。
.framework 并不总是那么大。它最近才变成 >100MB,所以它过去可以毫无问题地推送。这里有什么解决办法吗?
【问题讨论】:
-
现在是正在推送大文件还是它已经在存储库中并且删除失败(我认为这应该不是问题,但我可能会看到一些混乱)。
git show对当前提交有什么看法? -
您是在阻止文件
.framework,还是目录My.framework? -
该文件已在存储库中存储了一段时间,大约为 21 MB,但我最近使用 Xcode 7(启用了
Bitcode)对其进行了重建,它增长到了 106 MB。这是推送开始失败的时候。我禁用了Bitcode,现在它的大小又回到了 21 MB。然而,推动仍然失败。 @Makoto 我忽略了目录My.framework。