当前位置:   article > 正文

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

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.11.11/CI/testing.git --depth 1

方案三:使用ssh进行拉取

1. 生成本地ssh公钥:

 ssh-keygen -t rsa -C "pannn@xxx.com.cn"

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

2.gitlab添加ssh key

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

git clone git@192.168.11.11:xxx/xxxxx.git

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/小小林熬夜学编程/article/detail/707522
推荐阅读
相关标签
  

闽ICP备14008679号