git pull the upstream code: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Git pulls the upstream code, and it appears: LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

I have this situation because of proxy settings, and the settings are messy.

My solution process:

1. Set up proxy (not cancel directly, set first and then cancel)

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

The execution appears:

Proxy CONNECT aborted

2. Cancel proxy

git config  --global  --unset http.proxy 

In most cases, my problem can be solved.

If you have any questions, try the other two (cancel under configuration):

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

In the previous step 1, after setting up the proxy, the execution appears:

Proxy CONNECT aborted

It may be that the configuration of setting up your own proxy is incorrect. The proxy protocol used is as follows (choose a suitable one, do not copy and paste directly, my proxy port is 1080, configure it according to the actual situation):

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'

If you have enabled the proxy yourself, don't cancel it yet. Try it and see if the code can be pulled down. If you can't pull it down, go to step 2 above.

Because I don't understand, I can only try randomly.

Guess you like

Origin blog.csdn.net/x763795151/article/details/114903758