问题描述
下面用的是git submodule update, 用git clone ... --recursive问题是一样的
akagi201@akgentoo ~/a20-kernel (master*) $ git config http.postBuffer 5024288000akagi201@akgentoo ~/a20-kernel (master*) $ git submodule updateCloning 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/sfatal: The remote end hung up unexpectedlyfatal: early EOFfatal: index-pack failedClone of ’https://github.com/linux-sunxi/linux-sunxi.git’ into submodule path ’linux-sunxi’ failed
问题解答
回答1:不看commit历史的话,可以这样做
git clone url --depth 1回答2:
使用 ssh 协议克隆
回答3:RPC failed; result=18, HTTP code = 200 出错的解决方法:执行 git repack -a -f -d --window=250 --depth=250 即可。
如果还是报错则请执行:
git gc --aggressivegit repack -a -f -d --window=250 --depth=250
也可以更换为 SSH 地址推送:适用于 Coding https://coding.net/help/faq/g...适用于 GitHub https://help.github.com/artic...