当我尝试使用 git pull origin master
获取 pull form master 时,出现以下代理错误。
严重:无法访问“https://github.com/xxx/xxx.git/”:CONNECT 后从代理接收到 HTTP 代码 400
我正在使用 macOS Mojave,我也没有配置任何代理服务器。有人知道如何解决这个问题吗?
最佳答案
just run rm ~/.gitconfig
也许试试:
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --global --unset core.gitproxy
检查 git config -l --show-origin|grep -i proxy,确保你没有遗漏任何东西。
重点是:这比 rm ~/.gitconfig
的“破坏性”要小。
关于git - 如何解决 fatal : unable to access, Received HTTP code 400 from proxy after CONNECT,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55451735/