从版本1.7.9开始,git在代理后面不起作用

时间:2013-02-15 13:59:54

标签: git proxy

从git 1.7.9开始,我无法通过代理服务器克隆,获取或推送到存储库。它适用于1.7.8版本,但较新版本(包括最新版本)会抛出此错误:

error: Failure when receiving data from the peer while accessing http://github.com/...
fatal: HTTP request failed

我在git config中设置了http.proxy属性,这在1.7.8中已经足够了。我能够使用更新版本的git运行的唯一方法是使用cntlm。

我做错了什么?

1 个答案:

答案 0 :(得分:4)

我正在使用git1.7.9 +(最近1.8+)克隆代理。

但是,我没有在 git 配置中设置http.proxy 我在Windows或Unix上设置环境变量:

HTTP_PROXY=http://user:password@proxy.fr.domain:80/
HTTPS_PROXY=http://user:password@proxy.fr.domain:80/
NO_PROXY=*.domain

我克隆/推/拉GitHub repos没有任何问题。

相关问题