問題描述
用git的時候可能會遇到這個問題:
(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
如圖
解決方案
嘗試通過像這樣設(shè)置 git config 來強(qiáng)制 git 使用 HTTP 1.1
git config --global http.version HTTP/1.1
然后使用git操作
如果你想將其設(shè)置回 HTTP2,你可以這樣做
git config --global http.version HTTP/2
成功解決如圖:文章來源:http://www.zghlxwxcb.cn/news/detail-638102.html
順帶解決Git Clone遇到的:GnuTLS recv error (-110): The TLS connection was non-properly terminated.文章來源地址http://www.zghlxwxcb.cn/news/detail-638102.html
apt-get install gnutls-bin
git config --global http.sslVerify false
git config --global http.postBuffer 1048576000
到了這里,關(guān)于成功解決git clone遇到的error: RPC failed; curl 16 Error in the HTTP2 framing layer fatal: expected flush af的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!