github - git clone 一個比較大的 repo 出錯, 糾結我 1 天了, 求助
巴扎黑
巴扎黑 2017-04-27 09:02:49
0
3
639

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

全部回覆(3)
Ty80

不看commit歷史的話,可以這樣做

git clone url --depth  1
过去多啦不再A梦

使用 ssh 協定克隆

给我你的怀抱

RPC failed; result=18, HTTP code = 200 出錯的解決方法:
執行 git repack -a -f -d --window=250 --depth=250 即可。

如果還是報錯則請執行:

git gc --aggressive

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

也可以更換為 SSH 位址推送:
適用於 Coding https://coding.net/help/faq/g...
適用於 GitHub https://help.github.com/artic...

熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板
關於我們 免責聲明 Sitemap
PHP中文網:公益線上PHP培訓,幫助PHP學習者快速成長!