git - 如何解决 fatal : unable to access, Received HTTP code 400 from proxy after CONNECT

标签 git github

当我尝试使用 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/

相关文章:

git - 使用 git rebase 编辑 merge 提交

git - 我如何在 git GUI 中使用 git pull --rebase

javascript - 尝试导入错误 : 'required' is not exported from 'yup'

git - 在 github 上 fork 一个仓库

git - origin 似乎不是 git 存储库

git - 仅使用 git 存储未暂存的更改(而不是 --keep-index)

每个作者的 GIT 贡献(行)

git - 如何在 git pathspec 中使用通配符?

git:只保留特定文件的最新版本

http - 为什么 OkHttp 在设置 If-Modified-Since header 时会像对待 Last-Modified header 一样对待 Date header ?