推送到远程服务器时,我遇到以下错误:
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 'git@cassandra.predictioninstitute.com:development'"
我认为问题是我不小心提交了一些非常大的日志文件。但是后来我删除了它们(git rm logfile),但错误仍然存在。它们在“git status”中没有显示。我该如何恢复?
git rm
命令删除它们,则可能会在旧的提交中存在这些文件。您是否有意将历史记录重写并完全删除它们?此外,您是指意外推送还是意外提交? - CB Bailey