当推到远程服务器,我得到的错误:推送操作:致命的:内存不足,malloc的失败
Counting objects: 58, done.
Compressing objects: 100% (35/35), done.
fatal: Out of memory, malloc failed (tried to allocate 595059947 bytes)
error: pack-objects died of signal 13
error: failed to push some refs to '[email protected]:development'"
我认为这个问题是我不小心comitted一些非常大的日志文件。但我后来删除它们(git rm logfile),但错误依然存在。而且它们不会显示在“git status”中。我该如何恢复?
参见[这](https://help.github.com/articles/remove-sensitive -数据);有关从repo中清除数据并使用垃圾回收器的部分。 – Shahbaz
如果您使用'git rm'移除它们,则它们可能出现在旧提交中。你有否反对重写你的历史并完全删除它们?你的意思是不小心推动或意外犯下? –
我的意思是承诺不推(已编辑原始问题)。我反对重写历史。任何有用的东西。 – Rune