Reputation: 429
I am trying to clone the RestKit from https://github.com/RestKit/RestKit.git.
This is what I have done so far:
Installed git.
Set up the .gitconfig
file with correct params in ~/
[user]
name = myName
email = myEmail
[http]
proxy = http://<username for proxy>:<password for proxy>@PROXY:8080
sslverify = false
[https]
proxy = https://<username for proxy>:<password for proxy>@PROXY:8080
Started the clone command as follows:
git clone https://github.com/RestKit/RestKit.git
I am getting the following error:
Cloning into 'RestKit'...
error: Could not resolve host: (nil); nodename nor servname provided, or not known while accessing https://github.com/RestKit/RestKit.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
What am I missing?
UPDATE:
When I replace the http.proxy in the .gitconfig file with
http://:8080
i.e., without the credentials, then I get the following error:
Cloning into 'RestKit'...
error: The requested URL returned error: 407 while accessing https://github.com/RestKit/RestKit.git/info/refs?service=git-upload-pack
fatal: HTTP request failed
Upvotes: 1
Views: 3356
Reputation: 429
Well I figured out the issue. My password had an '@', due to which anything after the '@' in the password was being considered as the proxy address. Quite simple and dumb but it took me long to figure this out. :(
Upvotes: 1
Reputation: 29032
Sometimes, proxies don't work without having the domain first specified. Try adding this to your .gitconfig
[http]
proxy = http://mydomain\\myusername:mypassword@PROXY:8080
Also have a further look at this question it might point some things out.
Upvotes: 0