github错误 Failed to connect to 127.0.0.1 port 1080: Connection refused

windows下:

C:\Users\admin\.gitconfig文件,添加代理:

[http]

proxy = http://127.0.0.1:1080

当然需要打开自己的代理软件ssr,全局模式,就好了。

在gitbash中输入命令:

$ git config --global http.proxy

显示为这个,就表示添加代理成功:

http://127.0.0.1:1080

至于网上的其他方法,我试了都不行,你们看着办。

猜你喜欢

转载自blog.csdn.net/chaobin6/article/details/80764127