Wednesday, December 4, 2013

Git: Received HTTP code 407 from proxy

I was cloning a git project:

git clone https://github.com/jiaqi/jmxterm

and I got
fatal: unable to access 'https://github.com/jiaqi/jmxterm/': Received HTTP code 407 from proxy after
 CONNECT


just do

git config --global http.proxy http://myusername:mypassword@proxy.acme.com:8080

and it will work (inshallah)

1 comment:

3abd6833-ace9-4628-8707-8e5d621b8545 said...

This really works. Type

git config --global http.proxy http://myusername:mypassword@proxy.acme.com:8080

where myusername is "domain\username" and password is "yourpassword".

Then do git clone as usually. :)