git clone 失败——RPC 失败。curl 16 Error in the HTTP2 framing layer
git clone克隆代码报错RPC失败,curl 16 Error如下:
username@hostname:~$ git clone --depth=1 https://github.com/raspberrypi/linux
正克隆到 'linux'...
error: RPC 失败。curl 16 Error in the HTTP2 framing layer
fatal: 在引用列表之后应该有一个 flush 包
设置http版本之后,再clone
username@hostname:~$ git config --global http.version HTTP/1.1
username@hostname:~$ git clone --depth=1 https://github.com/raspberrypi/linux
正克隆到 'linux'...
remote: Enumerating objects: 87515, done.
remote: Counting objects: 100% (87515/87515), done.
remote: Compressing objects: 100% (81634/81634), done.
remote: Total 87515 (delta 8592), reused 22498 (delta 4966), pack-reused 0 (from 0)
接收对象中: 100% (87515/87515), 240.92 MiB | 2.24 MiB/s, 完成.
处理 delta 中: 100% (8592/8592), 完成.
正在更新文件: 100% (82603/82603), 完成.
下载成功之后恢复http协议版本
username@hostname:~$ git config --global --unset http.version
或
username@hostname:~$ git config --global http.version HTTP/2
更多推荐
所有评论(0)