Git on Mac OS persistently uses HTTP proxy

April 10, 2013

So I’ve been running into the problem off late on Mac OS when using an HTTPS proxy and then using git over https. After removing the proxy from Preferences, the http proxy still persists giving an error as seen below:

Cloning into 'Foo'...
error: Failed connect to; Connection refused while accessing
fatal: HTTP request failed

It took me a while to figure this out since I figured this was a Mac OS problem where the proxy settings weren’t being removed. The quick fix is to remove the HTTP proxy globally through git:

git config --global --unset http.proxy

Alas! That’s all it took!

Discussion, links, and tweets

I'm a software enginer that's worked on various Android projects for a while now. If you'd like to follow me on Twitter, I don't always post about tech things.