我想更新GitHub上的私人存储库,但是一个大文件阻止我这样做。 GitHub警告我文件太大:撤消Git提交由于大文件
增量压缩使用多达2个线程。
Compressing objects: 100% (18/18), done.
Writing objects: 100% (22/22), 8.69 MiB | 3 KiB/s, done.
Total 22 (delta 11), reused 0 (delta 0)
remote: error: GH001: Large files detected.
remote: error: Trace: 0c940595507e24d7d2765083a99bdae8
remote: error: See http://git.io/iEPt8g for more information.
remote: error: File logs/log.dat is 101.98 MB; this exceeds GitHub's file size limit of 100 MB
然后我清除了文件内容并重新提交。但是,我仍然遇到同样的错误。我也试过以下无济于事:
git reset HEAD~1
和
git rm --cached logs/log.dat
谁能帮助?
注:我已经尝试过发布此问题之前列出的解决方案。当他们似乎没有工作时,我寻求帮助。
不重复,因为他们的解决方案无法正常工作。 – user2694306 2015-04-02 13:28:19
[如何从Git存储库中的提交历史中删除/删除大文件?](http://stackoverflow.com/questions/2100907/how-to-remove-delete-a-large-file-from- commit-history-in-git-repository) – meagar 2015-04-02 13:30:10
这些解决方案都不起作用。这就是为什么我发布了一个新问题。我们能否请尽量保持建设性并帮助其他用户,而不是仅仅关闭有效的问题。 – user2694306 2015-04-02 13:34:08