Akagi201
V2EX  ›  问与答

git clone 一个比较大的 repo 出错, 纠结我 1 天了, 求助

  •  
  •   Akagi201 · Aug 15, 2014 · 3904 views
    This topic created in 4376 days ago, the information mentioned may be changed or developed.
    下面用的是git submodule update, 用git clone ... --recursive问题是一样的
    ```
    akagi201@akgentoo ~/a20-kernel (master*) $ git config http.postBuffer 5024288000
    akagi201@akgentoo ~/a20-kernel (master*) $ git submodule update
    Cloning into 'linux-sunxi'...
    remote: Counting objects: 4022357, done.
    remote: Compressing objects: 100% (682462/682462), done.
    error: RPC failed; result=18, HTTP code = 200.31 MiB | 654.00 KiB/s
    fatal: The remote end hung up unexpectedly
    fatal: early EOF
    fatal: index-pack failed
    Clone of 'https://github.com/linux-sunxi/linux-sunxi.git' into submodule path 'linux-sunxi' failed
    ```
    6 replies    2014-08-16 12:22:28 +08:00
    chunyang
        1
    chunyang  
       Aug 15, 2014   ❤️ 1
    换一个网络环境试一下。

    我用学校的 VPN 也经常遇到类似的情况:git clone 时不时出错、网易云音乐部分歌无法播放。这时换成 CMCC-EDU 就没这样的问题了。
    Akagi201
        2
    Akagi201  
    OP
       Aug 15, 2014
    @chunyang 换阿里云的主机可以了, 我在我电脑的mac和虚拟机的linux都不行
    DreaMQ
        3
    DreaMQ  
       Aug 15, 2014 via Android
    用Linode克隆然后拉回来
    Akagi201
        4
    Akagi201  
    OP
       Aug 15, 2014
    @DreaMQ 2.3g, 折腾死我了
    imskull
        5
    imskull  
       Aug 16, 2014
    @Akagi201 前不久折腾安卓源代码是刚遇到类似错误,PPTP改成L2TP完美解决。
    Akagi201
        6
    Akagi201  
    OP
       Aug 16, 2014
    @imskull 恩, 是网络问题, 我本地在mac和linux下都不行
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1133 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:52 · PVG 01:52 · LAX 10:52 · JFK 13:52
    ♥ Do have faith in what you're doing.