使用Git克隆github仓库时一直报错

 HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

通过排查发现,是 git 默认使用的通信协议出现了问题,可以通过将默认通信协议修改为 http/1.1 来解决该问题。

git config --global http.version HTTP/1.1

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐