从git 1.7.9开始,我无法通过代理服务器克隆,获取或推送到存储库.它适用于1.7.8版本,但较新版本(包括最新版本)会抛出此错误:
error: Failure when receiving data from the peer while accessing http://github.com/...
fatal: HTTP request failed
Run Code Online (Sandbox Code Playgroud)
我在git config中设置了http.proxy属性,这在1.7.8中已经足够了.我能够获得更新版本的git运行的唯一方法是使用cntlm.
我究竟做错了什么?
我在代理后面使用 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
Run Code Online (Sandbox Code Playgroud)
我克隆/推/拉 GitHub 存储库没有任何问题。