新文章 网摘 文章 随笔 日记

VS使用Git推送出现libcurl is built without the HTTPS-proxy support错误

Git failed with a fatal error.
unable to access 'XXXXX.git/': Unsupported proxy 'XXX.XXX.XXX.XXX:8080', libcurl is built without the HTTPS-proxy support.
Pushing to http://XXX.XXX.XXX.XXX:XXX/XXXX/XXXX.git


原因是:
C:\Users\xxx下的.gitconfig文件的配置中的代理网址,原来使用的是https,后来改成了http,所以要把这个代理网址改成http,还有代理网址的密码也要修改。

 

================

如果代理賬號密碼都正確,仍出現502,遠程倉庫是局域網,可能不需要代理,請將.gitconfig文件的配置中的代理网址註釋掉,即在每行前面加#號即可。例如:

#[https]
# proxy = https://XXX:*****@**.**.**.**:8080
#[http]
# proxy = http://XXX:*****@**.**.**.**:8080

 

https://stackoverflow.com/questions/44594353/the-requested-url-returned-error-502-corporate

posted @ 2021-07-01 13:32  岭南春  阅读(517)  评论(0)    收藏  举报