1. 報錯:GnuTLS recv error (-110): The TLS connection was non-properly terminated.
在使用git clone 時,出現了以下錯誤: GnuTLS recv error (-110): The TLS connection was non-properly terminated.
依序輸入以下代碼:
1. apt-get install gnutls-bin
2. git config --global http.sslVerify false
3. git config --global http.postBuffer 1048576000
然後再次使用git clone 發現可以正常下載了。
2. 報錯: Failed to connect to github.com port 443: Connection timed out
輸入以下兩行程式碼解決:
1. git config --global --unset http.proxy
2. git config --global --unset https.proxy
3 報錯:Failed to send update failed email. No contacts founderror: RPC failed; curl 16 Error in the HTTP2 framing layer fatal: expected flush after ref listing
解决方案:嘗試通過以下設置git config 強制 git 使用HTTP 1.1,然後使用git操作
git config --global http.version HTTP/1.1
如果你想將其設置回HTTP2
git config --global http.version HTTP/2