Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git clone can't resolve proxy

Tags:

git

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 = [email protected] 
like image 464
koral Avatar asked Apr 26 '12 12:04

koral


People also ask

How do I change my proxy settings in Git?

Setting the proxy for Gitgit config --global --add http. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT. git config --global --add https. proxy http://USERNAME:PASSWORD@PROXY_ADDRESS:PROXY_PORT.

Can't resolve proxy Kali Linux?

The Solution Error: “Could not resolve proxy: https; Unknown error” explains that there is a syntax issue in /etc/sysconfig/rhn/up2date config file for proxy server. Change https to http and then retry the yum update.


1 Answers

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

git config --global --unset http.proxy 
like image 160
positron Avatar answered Sep 24 '22 06:09

positron