无法推送到 GitHub 错误:pack-objects 死于信号 13 [英] Can't push to GitHub error: pack-objects died of signal 13

查看:43
本文介绍了无法推送到 GitHub 错误:pack-objects 死于信号 13的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法将本地文件夹推送到 GitHub 上的远程存储库.

I'm having trouble pushing my local folder to my remote repository on GitHub.

当我把它推到 96% 左右后,就会显示这个..

After I push it gets to around 96% then shows this..

Counting objects: 4145, done.
Delta compression using up to 2 threads.
Connection to github.com closed by remote host.
fatal: The remote end hung up unexpectedly
Compressing objects:  98% (3919/3969)   

然后在最后 2% 完成后显示此错误...

Then after the last 2% completes is shows this error...

Compressing objects: 100% (3963/3963), done.
error: pack-objects died of signal 13
error: failed to push some refs to 'git@github.com:example/example.git' 

不确定这意味着什么.

推荐答案

这可能是由新的 GitHub 对文件大小的限制,或者打包过程可能因大数据而崩溃(就像 2011 年的另一个 SO 问题:在甚至可以报告这些特定限制之前对大型回购进行初始推送的替代方法.

This might be caused by the new GitHub limits on file sizes, or possibly the packing process is crashing out due to large data (like in this other SO question from 2011: Alternative way to do an initial push of a large repo) before those particular limits can even be reported.

几周前,在同事的 Mac OS X 机器上,我在推送时看到了类似的不透明错误消息(不过,仅通过 HTTPS - SSH 给出了很好的错误消息) - 但刚刚尝试通过推送一个大在我自己的 Mac 上将文件传输到 GitHub,我在两种连接协议上都收到了预期的信息性错误消息(远程:错误:文件大为 976.56 MB;这超出了 GitHub 的文件大小限制 100 MB").可能我的同事安装了旧版本的 Git,无法正确报告错误.

A few weeks ago on a colleague's Mac OS X machine I saw a similar opaque error messag when pushing (tho' only over HTTPS - SSH gave the good error message) - yet having tried to reproduce this just now by pushing a big file to GitHub on my own Mac, I got the expected informative error message on both connection protocols ("remote: error: File big is 976.56 MB; this exceeds GitHub's file size limit of 100 MB"). It's possible that my colleague had an older version of Git installed that couldn't report the errors correctly.

如果您决定需要从 Git 历史记录中删除大文件(因为这是将它们推送到 GitHub 的唯一方法),我可以推荐 BFG:

If you decide you need to remove the large files from your Git history (as it's the only way you'll get them pushed up to GitHub), I can recommend The BFG:

$ java -jar bfg.jar  --strip-blobs-bigger-than 50M  my-repo.git

完全披露:我是 BFG Repo-Cleaner 的作者.

这篇关于无法推送到 GitHub 错误:pack-objects 死于信号 13的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆