我在
Windows 7,32位盒子上,在代理后面工作.我刚刚将我的git客户端(
Git Bash)升级到
Git-1.8.3-preview20130601,突然之间,每当我尝试推/拉时,我都会收到以下错误:
fatal: unable to access 'https://github.com/User/simple_timesheets.git/: Received HTTP code 407 from proxy after Connect
升级之前我能够做到这一点,即使我试图恢复到我认为的最后一个版本,我仍然会收到错误.当我运行git config -l时,它会列出以下变量(以及其他变量):
user.name=MyName user.email=My@email.com http.proxy=http://user:password@server:port core.autocrlf=true https.proxy=http://user:password@server:port http.sslcainfo=/bin/curl-ca-bundle.crt
奇怪的是,我似乎能够使用Git Bash客户端来卷曲
curl finance.yahoo.com --proxy http://user:password@server:port
甚至可以卷曲到我在电脑上设置的虚拟https网站:
curl https://localhost:3000 --insecure
我缺少什么想法?谢谢
编辑:
我可能错了,但我认为版本1.8.3中可能存在卷曲问题.我在计算机上卸载了我能想到的所有与git相关的应用程序,并安装了Git-1.8.0-preview20121022,对repo进行了拉动并且成功了.
对于咯咯笑声,我卸载了工作版本,并保留了证书文件;然后重新安装版本1.8.3,看看这是否与它没有任何关系,但我得到了我原本试图解决的相同错误.
此外,重新安装版本1.8.0后,我尝试使用以下命令卷曲https网站(gmail):curl https://www.gmail.com –proxy http:// user:pass @ server:港口,这是成功的.当我在1.8.3下执行此操作时,我收到有关代码407的错误.版本切换似乎解决了这个问题.
解决方法
我有同样的问题通过使用两个代理过滤器来解决它:
“–proxy或-x”和“–proxy-user”.
curl -x http://proxyserverurl:port --proxy-user username:password -L http://url
虽然您尝试过的也没有错,但可能与您的卷曲版本不兼容.
希望这可以帮助!