Error 1 Failed to connect to github.com port 443 after xxx ms: Operation timed out
-
GitHub无法访问、443 Operation timed out的解决办法
- Solution 1:修改hosts文件,添加github.com IP
-
github push ssh方式 出现 port 443 22 的报错排查及踩坑
- Solution 2:修改DNS
-
Solution 3: 设置http和https代理 set proxy to git command by executing
git config --global http.proxy http://10.xx.x.xxx:8080
- unset the proxy, 去除http和https代理:
git config --global --unset http.proxy
git config --global --unset https.proxy
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