git

Git push - Failed to connect to github.com port 443 after xxx ms: Operation timed out

Posted by Yuankun Li on 2022-12-07

Error 1 Failed to connect to github.com port 443 after xxx ms: Operation timed out

Error 2 HTTP/2 stream 1 was not closed cleanly before end of the underlying stream

是 git 默认使用的通信协议出现了问题,可以通过将默认通信协议修改为 http/1.1 来解决该问题。
$ git config --global http.version HTTP/1.1
git config --global http.postBuffer 157286400



show git comment