我正在尝试从https://github.com/RestKit/RestKit.git克隆 RestKit 。
这是我到目前为止所做的:
安装了 git。
.gitconfig
使用正确的参数设置文件~/
[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
启动克隆命令如下:
git clone https://github.com/RestKit/RestKit.git
我收到以下错误:
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
我错过了什么?
更新:
当我将 .gitconfig 文件中的 http.proxy 替换为
http://:8080
即,没有凭据,然后我收到以下错误:
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