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

至於網上的其他方法,我試了都不行,你們看着辦。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章