git error: Connection refused

The code submitted a few days ago was fine, and there was no change. Suddenly, it could not be submitted today, so I recorded the problem as a reminder.

Error 1: Failed to connect to 127.0.0.1 port 1181: Connection refused

The above error occurs because the proxy proxy is used, so the key operation to solve this problem is to cancel the proxy setting

Check if a proxy is used

git config --global http.proxy

Cancel proxy settings

git config --global --unset http.proxy

Error 2: SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443

Check whether the [http] and [https] options are set

If the proxy setting is wrong, use the following statement to remove the proxy

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

Portal: nanny Spring5 source code analysis

Welcome to exchange technology and work life with the author

contact author

Guess you like

Origin blog.csdn.net/yuchangyuan5237/article/details/130960149