git克隆无法解析代理 [英] git clone can't resolve proxy

查看:594
本文介绍了git克隆无法解析代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试从git克隆时

  git clonehttp://github.com/symfony/symfony.git d:/ www / a / vendor / symfony

我收到错误


$ b $

克隆到'd:/ www / a / vendor / symfony'...
错误:在访问http://github.com/symfony/symfony.git/info/refs
时无法解析代理'(null)'致命错误:HTTP请求失败

我直接连接到互联网(无需代理服务器)。我试图关闭防火墙,并没有帮助。我在Windows上,只是从 http:/从Git-1.7.10-preview20120409.exe安装。 /code.google.com/p/msysgit/downloads/list 。以前我有1.7.8和这个命令的工作。我也重新安装了TortoiseGit,但我认为它没有关系。



我的 C:\ Documents and Settings \xxx\.gitconfig 文件是

  [http] 
代理=
[用户]
name = xxxx
email = xxx@example.com


解决方案 div>

似乎问题在邮件列表中报告。
有帮助吗?

  git config --global --unset http.proxy 


When I try to clone from git

git clone "http://github.com/symfony/symfony.git" "d:/www/a/vendor/symfony"

I get an error

Cloning into 'd:/www/a/vendor/symfony'...
error: Couldn't resolve proxy '(null)' while accessing http://github.com/symfony/symfony.git/info/refs
fatal: HTTP request failed

I'm connected directly to the internet (without proxy). I tried to turn off firewall and didn't help. I'm on windows and just installed Git-1.7.10-preview20120409.exe from http://code.google.com/p/msysgit/downloads/list . Previously I had 1.7.8 and this command worked. I also reinstalled TortoiseGit but I think it doesn't matter.

My C:\Documents and Settings\xxx\.gitconfig file is

[http]
    proxy = 
[user]
    name = xxxx
    email = xxx@example.com

解决方案

Seems the problem is reported in the mailing list. Does this help?

git config --global --unset http.proxy

这篇关于git克隆无法解析代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆