git clone报错 early EOF The remote end hung up unexpectedly index-pack failed RPC failed

git  clone报错 early EOF The remote end hung up unexpectedly index-pack failed RPC failed

 

 

 

解决方案

https://stackoverflow.com/questions/21277806/fatal-early-eof-fatal-index-pack-failed

First, turn off compression:

git config --global core.compression 0
1
Next, let’s do a partial clone to truncate the amount of info coming down:

git clone --depth 1 <repo_URI>
1
When that works, go into the new directory and retrieve the rest of the clone:

git fetch --unshallow
1
or, alternately,

git fetch --depth=2147483647
1
Now, do a regular pull:

git pull --all
1
I think there is a glitch with msysgit in the 1.8.x versions that exacerbates these symptoms, so another option is to try with an earlier version of git (<= 1.8.3, I think).

posted @ 2019-12-31 16:25  旅行的青蛙  阅读(3125)  评论(0编辑  收藏  举报