【Git】unable to access https://github.com/xxx/xxx: HTTP/2 stream 1 was not closed cleanly before

Alpine里尝试安装Yapi,当安装好git 拉取代码时报错,详细如下

报错内容

Cloning into 'vendors'...
fatal: unable to access 'https://github.com/YMFE/yapi.git/': HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

原因:

git默认使用http/2.0协议,而github还是http/1.1 。

解决方案:

git config --global http.version HTTP/1.1

现场

在这里插入图片描述

你可能感兴趣的:(总结,笔记,git,alpine)