2

I'm trying to push my changes but keep getting the following error:

error: Couldn't resolve proxy ''xx.xxx.xxx.xxx' while accessing http://name:password@site.com:7678/scm/xx/xxx.git/info/refs?service=git-receive-pack
fatal: HTTP request failed

Previously I had set up a proxy for an unrelated project on Windows 8 through 'LAN Settings' in 'Internet Options', I removed the proxy but it seems that Git is trying to connect to it for some reason. I never set any proxy options on Git.

I've tried the following:

git config --global --unset http.proxy
git config --global --unset core.gitproxy
git config --local --unset http.proxy
Andy
  • 49,085
  • 60
  • 166
  • 233
Carlos Granados
  • 407
  • 4
  • 14
  • Notice the two single quotes at the beginning of the proxy, weird – Carlos Granados Mar 14 '14 at 19:11
  • "What and I not allowed to say thanks?" Because it is just noise: http://meta.stackexchange.com/q/2950/6309. Please remove the last two lines of your question. – VonC Mar 20 '14 at 14:59

1 Answers1

1

Try a git config -l | grep proxy to see if there is any http.proxy setting defined anywhere.

And check your HTTP_PROXY/HTTPS_PROXY environment variables: even without git setting in place, those variables could be picked up by git for a git push.

set HTTP_PROXY=
set HTTPS_PROXY=

The idea is to set those settings or environment variable with the right url, without double single quotes.

The OP Carlos Granados confirms in the comments:

I removed the environment variable 'HTTP_PROXY'.
The Git file did not have those variables set.

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250