git错误提示error: RPC failed; curl 18 transfer closed with outstanding read data remaining



转载至http://www.cnblogs.com/xiguapijiamuguanaicha/p/6508521.html,感谢原博主。


error: RPC failed; curl 18 transfer closed with outstanding read data remaining 

fatal: The remote end hung up unexpectedly 
fatal: early EOF 
fatal: index-pack failed

 

原因说明:

我们的项目由于时代久远,所以导致整个项目比较复杂庞大。出现这种错误,就是因为curl的postBuffer默认值太小的原因,重新在终端配置一下这个值就可以了。

解决方法:

git config –-global http.postBuffer 524288000

524288000代表B,524288000B也就是500MB。这个值得大小,可以根据项目酌情设置。

也可以用如下命令查看是否配置成功:

git config –list



如果上述方法下载还是无效,可以按照以下方法尝试:


git 命令后面加 --depth 1


转载至http://www.cnblogs.com/xiguapijiamuguanaicha/p/6508521.html,感谢原博主。


error: RPC failed; curl 18 transfer closed with outstanding read data remaining 

fatal: The remote end hung up unexpectedly 
fatal: early EOF 
fatal: index-pack failed

 

原因说明:

我们的项目由于时代久远,所以导致整个项目比较复杂庞大。出现这种错误,就是因为curl的postBuffer默认值太小的原因,重新在终端配置一下这个值就可以了。

解决方法:

git config –-global http.postBuffer 524288000

524288000代表B,524288000B也就是500MB。这个值得大小,可以根据项目酌情设置。

也可以用如下命令查看是否配置成功:

git config –list

猜你喜欢

转载自blog.csdn.net/u010103202/article/details/79835726