git 报错 error:curl 18 transfer closed with outstanding read data remaining
每次git 拉代码,经常有这个报错
解决方式如下
一、加大缓存区
git config --global http.postBuffer 524288000
二、拉代码或这个clone代码的时候加上 --depth 1这个参数
git pull origin master --depth 1
git clone https://github.com/bb2103/dpi-tasks.git --depth 1
三、换协议
git clone https://github.com/bb2103/dpi-tasks.git
git clone git://github.com/bb2103/dpi-tasks.git
本文介绍了遇到Git拉取代码时出现的curl错误,并提供了三种解决方案:增加缓存区大小、使用--depth参数限制克隆深度及更换网络协议。
8889

被折叠的 条评论
为什么被折叠?



