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

原因:目标仓库文件目录太大,curl的postBuffer默认值太小,

方案一:设置缓冲区大小

git config --global http.postBuffer 524288000  #(单位B:约500M)

方案二:设置深度为1 --depth 1

git clone http://192.168.290.10/CI_AT/Mock_InterfaceTesting.git --depth 1

方案三:使用ssh进行拉取

1. 生成本地ssh公钥:

 ssh-****** -t rsa -C "[email protected]"

一路回车即可;进入指定位置打开公钥文件,打开复制内容粘贴到gitlab的ssh配置页面。

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

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

2.gitlab添加ssh key

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

保存,完成,再次通过git bash窗口clone项目即可。

git clone [email protected]:xxx/xxxxx.git

 

相关文章:

  • 2022-12-23
  • 2021-07-30
  • 2021-04-28
  • 2022-12-23
  • 2021-11-08
  • 2021-09-20
  • 2022-12-23
猜你喜欢
  • 2021-09-06
  • 2022-02-07
  • 2022-12-23
  • 2021-04-24
相关资源
相似解决方案