search

Home  >  Q&A  >  body text

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

下面用的是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
巴扎黑巴扎黑2796 days ago720

reply all(3)I'll reply

  • PHP中文网

    PHP中文网2017-04-27 09:04:49

    If you don’t want to look at the commit history, you can do this

    git clone url --depth  1
    

    reply
    0
  • 过去多啦不再A梦

    过去多啦不再A梦2017-04-27 09:04:49

    Clone using ssh protocol

    reply
    0
  • 给我你的怀抱

    给我你的怀抱2017-04-27 09:04:49

    RPC failed; result=18, HTTP code = 200 Solution to the error:
    Execute git repack -a -f -d --window=250 --depth=250.

    If you still get an error, please execute:

    git gc --aggressive
    
    git repack -a -f -d --window=250 --depth=250

    You can also change to SSH address push:
    Applicable to Coding https://coding.net/help/faq/g...
    Applicable to GitHub https://help.github.com/artic...

    reply
    0
  • Cancelreply