git - 无法解决代理'0'错误

时间:2012-10-05 07:59:52

标签: git proxy

当我尝试将代码更改推送到git时,我收到此错误 -

error: Couldn't resolve proxy '0' while accessing https://github.com/pavanred/Radar-chart-utility-.git/info/refs
fatal: HTTP request failed

几天前我能够推送到git,我不知道为什么这突然停止了?

我搜索了互联网,但找不到任何答案。我在我的家庭网络工作,我没有代理服务器,我从互联网上获得的所有帮助建议我提供我的代理信息,但我没有。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

首先,确保取消设置任何代理:

cd /path/to/repo

git config --unset http.proxy
git config --unset https.proxy

git config --global --unset http.proxy
git config --global --unset https.proxy

其次,在 Windows(7 或 10)上,要在 CMD 中进行测试,请键入:

set HTTP_PROXY=
set HTTPS_PROXY=

然后再试一次。