git pull返回致命错误:无法访问“&引用;连接后从代理收到HTTP代码0

git pull返回致命错误:无法访问“&引用;连接后从代理收到HTTP代码0,git,proxy,fatal-error,Git,Proxy,Fatal Error,我已经配置了git repo,需要使用代理服务器访问internet 当我在没有任何git配置的代理(http(s).proxy)的情况下发送命令git pull时,我收到以下消息: fatal: unable to access "https://..." Failed to connect to ... port 443: Connection refused 我试过: git config --global http.proxy host:port git config --global

我已经配置了git repo,需要使用代理服务器访问internet

当我在没有任何git配置的代理(http(s).proxy)的情况下发送命令git pull时,我收到以下消息:

fatal: unable to access "https://..." Failed to connect to ... port 443: Connection refused
我试过:

git config --global http.proxy host:port
git config --global https.proxy host:port
git config --global http.proxy http://host:port
git config --global https.proxy http://host:port
我得到以下错误:

fatal: unable to access "https://..." Received HTTP code 0 from proxy after CONNECT
然后我试着:

git config --global http.proxy host:port
git config --global https.proxy host:port
git config --global http.proxy http://host:port
git config --global https.proxy http://host:port

但我也犯了同样的错误


你能帮帮我吗?

可能是个问题?您可以使用
git config--list--show origin
检查设置,以确保达到预期效果。顺便说一句:您需要
http.proxy
,它是一个变量的名称。@Christoph不,任何值都没有重复项。如果您按照这些步骤操作会怎么样?@Christoph唯一不同的步骤是设置“”,但我已经要求我的IT团队和我们的代理没有身份验证…如果您需要进一步的帮助,请具体说明你到底做了什么。对我来说,还不清楚您有什么配置设置(本地、全局)。