【问题标题】:git clone fatal error : RPC failed , The remote end hung up unexpectedly, early EOFgit clone 致命错误:RPC失败,远程端意外挂断,早期EOF
【发布时间】:2013-09-04 02:40:57
【问题描述】:

我正在尝试克隆一个存储库并开始使用它,所以我把你录下来

$ git clone https://github.com/VirtuOR/OpenTRILL

克隆开始

Cloning into 'OpenTRILL'...
remote: Counting objects: 46419, done.
remote: Compressing objects: 100% (42140/42140), done.

但它以以下错误结束

error: RPC failed; result=18, HTTP code = 200MiB | 55 KiB/s    
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed

请帮忙

【问题讨论】:

    标签: git unix


    【解决方案1】:

    我知道它来晚了,但这是解决方案,

    首先,让我们进行部分克隆以截断下来的信息量:

    git clone --depth 1 <url>
    

    它将克隆具有最少 git 历史记录的存储库。但是,使用“–depth 1”进行克隆不会让您将更改推送到远程仓库。 现在获取其余部分:

    git fetch --depth=1000000
    (Update Oct/3/2013) for git version >= 1.8.3,
    git fetch --unshallow
    

    注意:

    ‘git fetch –unshallow’ is basically an alias for ‘git fetch –depth=2147483647′.
    

    不能保证从浅克隆推送;推荐的工作流程是从您的浅克隆提交补丁(git 格式补丁)。尽管 git clone 手册指出浅克隆无法推送,但在您的浅克隆和原点之间拥有共同的提交历史记录将允许浅克隆通过。但是请注意,如果源重新修改提交历史记录,您的浅克隆将遇到麻烦。(source article: why-cant-i-push-from-a-shallow-clone).

    【讨论】:

    • “不能保证从浅克隆推送”:是的。但很快就会了! stackoverflow.com/a/21217326/6309
    • 执行此操作时出现相同的错误。 “远程端挂断了......早期的EOF。
    • git fetch --unshallow 对我不起作用,但添加远程名称和分支有效:git fetch --unshallow origin branch123
    【解决方案2】:

    确保问题仍然存在,因为 GitHub 今天出现了一些问题。
    查看其 GitHub 状态历史页面:

    Today
    6:52 UTC Everything operating normally.
    6:50 UTC Some GitHub pages are again unavailable. We are continuing to investigate. 
    

    我可以克隆你的 repo(刚刚)没有任何故障,但是在 Windows 上,使用 git1.8.3。

    检查是否可以升级 git 版本以查看问题是否仍然存在。

    【讨论】:

      猜你喜欢
      • 2020-04-08
      • 1970-01-01
      • 2021-08-04
      • 2021-08-02
      • 1970-01-01
      • 2014-09-17
      • 2013-02-20
      • 1970-01-01
      相关资源
      最近更新 更多