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
如图
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: