我试图弄清楚这个 git 问题,有一次我搞乱了 http.proxy 变量。现在这只是废话,“asdf”所以推动不起作用。我不知道之前的代理设置是什么(我什至不知道代理服务器是什么)。有什么方法可以将 http.proxy 设置为正确的值吗?
现在的错误是:“访问时无法解析代理‘asdf’...致命:HTTP 请求失败。
您错误地向 git 配置文件添加了一个条目。您可以使用以下命令操作全局配置文件和每个存储库的配置文件git config
.
要查明您是否将代理条目添加到全局或本地配置文件中,请从控制台运行以下命令:
git config -l --global | grep http # this will print the line if it is in the global file
git config -l | grep http # this will print the line if it is in the repo config file
然后删除所有http.proxy
来自全局或本地文件的条目运行以下命令:
git config --global --unset-all http.proxy # to remove it from the global config
git config --unset-all http.proxy # to remove it from the local repo config file
我希望这有帮助。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)