X

git clone error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054 ffatal: early EOF

git clone 时出现这个错误

error: RPC failed; curl 56 SSL read: error:00000000:lib(0):func(0):reason(0), errno 10054
ffatal: early EOF
atal: The remote end hung up unexpectedly
fatal: index-pack failed

解决方法

First, turn off compression:

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

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

git fetch --unshallow 
or, alternately,

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

git pull --all

 

打赏
微信扫一扫,打赏作者吧~
admin :