Successfully resolved the error encountered by git clone: RPC failed; curl 16 Error in the HTTP2 framing layer fatal: expected flush af

Successfully resolved the error encountered by git clone: ​​RPC failed; curl 16 Error in the HTTP2 framing layer fatal: expected flush af

Problem Description

When using git, you may encounter this problem:

(base) zhouzikang@7443-8x4090-120:~/project$ git clone https://github.com/123/123.git
Cloning into ‘StyleSwap’…
error: RPC failed; curl 16 Error in the HTTP2 framing layer
fatal: expected flush after ref listing
如图insert image description here

solution

Try forcing git to use HTTP 1.1 by setting git config like this

git config --global http.version HTTP/1.1

Then use git operation

If you want to set it back to HTTP2, you can do

git config --global http.version HTTP/2

Successfully solved as shown in the figure:
insert image description here

Guess you like

Origin blog.csdn.net/qq_45934285/article/details/131736984