git clone encountered this error Failed to connect to 127.0.0.1 port 1080: connection refused

The cause of the problem is the problem of the proxy
solution

#查看文件里面是否使用了代理
cat ~/.gitconfig

For example, the following file shows the proxy line, just comment it out, and then run git clone [url.git] to download the thing you want, you can copy the code in github. [VPN status should be turned on]
insert image description here

Guess you like

Origin blog.csdn.net/shan_5233/article/details/128906736