Git http.proxy设置

Shr*_*ers 15 git proxy

我试图想出这个git的东西,有一刻我搞砸了http.proxy变量.现在它只是胡说八道,'asdf'所以推动不起作用.我不知道之前代理设置是什么(我甚至不知道代理服务器是什么).有什么方法可以将http.proxy设置为正确的值?

现在错误是:"访问时无法解析代理'asdf'...致命:HTTP请求失败.

mam*_*ufo 36

您错误地在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
Run Code Online (Sandbox Code Playgroud)

然后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
Run Code Online (Sandbox Code Playgroud)

我希望这有帮助.