如何解决 fatal: 无法访问,CONNECT 后从代理收到 HTTP 代码 400

Azk*_*ana 3 git github

当我尝试使用拉式表单主机时,git pull origin master出现以下代理错误。

fatal: unable to access 'https://github.com/xxx/xxx.git/': Received HTTP code 400 from proxy after CONNECT

我正在 macOS Mojave 上工作,但也没有配置任何代理服务器。有人知道如何解决这个问题吗?

Von*_*onC 6

只需运行 rm ~/.gitconfig

也许可以尝试一下:

git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset core.gitproxy
Run Code Online (Sandbox Code Playgroud)

检查 git config -l --show-origin|grep -i proxy,以确保您没有错过任何内容。

关键是:这比 rm ~/.gitconfig.