【发布时间】:2013-09-20 19:48:47
【问题描述】:
我在 repo 中添加了一些文件,提交并尝试推送到 Github:
$ git add .
$ git commit -m 'bla'
$ git push origin master
当我尝试推送到 Github 时出现错误。
Counting objects: 84, done.
Delta compression using up to 2 threads.
error: pack-objects died of signal 9
error: failed to push some refs to 'git@github.com:xxxxx/xxxxx.git'
两周前我去度假之前一切正常。据我所知,在此期间没有任何变化。配置文件似乎没问题。而且 git push -f 也会产生和上面一样的错误。
【问题讨论】:
-
确保您的 ssh 已设置。
-
什么意思? SSH 密钥?它一直运行良好。如果几周不使用它会“过期”吗?
-
或者你现在有一些大文件吗? stackoverflow.com/questions/7985124/…
-
听起来你被OOM killer 击中了。
-
原来@doctorlove 是对的。添加了 101 Meg 错误日志。显然,我已将 error_log 添加到 .gitignore 但从未将其从 git 缓存中删除,因此它仍在被跟踪。当我在度假时,显然日志超过了允许文件大小的 100 Meg 限制。