git拉取上游代码:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

git拉取上游代码,出现:LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

我出现这种情况是因为代理设置问题,而且设置的比较乱。

我的解决流程:

1.设置代理(不是直接取消,先设置再取消)

git config  --global  http.proxy 'http://localhost:1080' 

执行出现:

Proxy CONNECT aborted

2.取消代理

git config  --global  --unset http.proxy 

大部分情况,我的问题能解决。

还有问题就把另外两种都试一下(配置下再取消):

git config  --global  --unset https.proxy
git config  --global  --unset socks.proxy

前面第1步,设置代理后,执行出现:

Proxy CONNECT aborted

那可能是设置自己代理的配置不对,用的代理协议,如下(选一个合适的,不要直接复制粘贴,我的代理端口是1080,根据实际情况配置):

git config http.proxy 'socks://localhost:1080'
git config https.proxy 'socks://localhost:1080'

git config http.proxy 'socks5://localhost:1080'
git config https.proxy 'socks5://localhost:1080'

如果自己启用了代理,那就先不要取消了,试一下,看代码能拉下来不,拉不下来再走上面的第2步。

因为不懂,只能乱试。

猜你喜欢

转载自blog.csdn.net/x763795151/article/details/114903758