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

Akagi201
  • 519

下面用的是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
回复
阅读 18.5k
3 个回答
lidashuang
  • 6.6k

不看commit历史的话,可以这样做

git clone url --depth  1

使用 ssh 协议克隆

宣传栏