当前位置:   article > 正文

mac上git clone报错:error: RPC failed; curl 92 HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (e_mac error: rpc failed; result=92

mac error: rpc failed; result=92

一,加大缓存区 git config --global http.postBuffer 524288000 这个大约是500M

二、少clone一些,–depth 1 git clone https://github.com/flutter/flutter.git --depth 1

–depth 1的含义是复制深度为1,就是每个文件只取最近一次提交,不是整个历史版本。

三***、换协议 clone http方式换成SSH的方式,

即 https:// 改为 git://

例如git clone https://github.com/test/test.git 换成git clone git://github.com/test/test.git

git config --global http.version HTTP/1.1
git clone
git config --global http.version HTTP/2
切换服务传输协议

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

闽ICP备14008679号