【问题标题】:git push -u origin master error: Received HTTP code 0git push -u origin master 错误:收到 HTTP 代码 0
【发布时间】:2012-06-04 02:00:26
【问题描述】:

我多次使用此命令,每次都有效,但今天在我创建一个 repo 并再次使用它后发生错误:

git push -u origin master

它给了我这个:

error: Received HTTP code 0 from proxy after CONNECT while accessing https://github.com/[myrepo]

fatal: HTTP request failed

我使用了echo $http_proxy 并得到了http://127.0.0.1:48100。但我不记得我曾经设置过这个。(我有时确实将这个用于我的firefox。)我使用了unset 命令,但它仍然给了我同样的错误。有没有办法可以永久将此代理设置为无?

还有其他方法可以实现吗?

感谢任何帮助!

【问题讨论】:

    标签: github


    【解决方案1】:

    如果你考虑:

    您当前的 http_proxy/https_proxy 环境变量(或您的 git config --global http(s).proxy)似乎不再引用有效的代理。
    还要检查用于这些代理的语法(每个都应以http://... 开头,如http://host:port)。

    【讨论】:

      猜你喜欢
      • 2018-07-30
      • 1970-01-01
      • 2011-08-07
      • 2019-08-27
      • 2020-07-30
      • 2020-11-23
      • 1970-01-01
      相关资源
      最近更新 更多