Q -我安装了git来获得最新版本的Angular。当我试图逃跑的时候

git clone https://github.com/angular/angular-phonecat.git

我得到失败连接到github 443错误

我甚至尝试过

git clone git://github.com/angular/angular-phonecat.git

这给了我失败的连接没有错误消息。

我在公司的防火墙后面。当我进入控制面板->Internet选项->连接-> LAN设置时,我无法看到我的代理详细信息。IT人员不会和我分享代理信息。我不知道该怎么办?

我终于做到了。我将更新我所采取的程序,以便 只是想编译所有的步骤,我做了让它工作


当前回答

在Windows 7中将代理设置为全局配置将解决此问题

Git配置——global http。代理http://user: password@proxy_addr:端口

但问题是你的密码不会被加密。希望这应该不是太大的问题,因为大多数时候你将是你的个人电脑的唯一主人。

其他回答

如果你没有使用代理,仍然面临这个问题,你应该使用下面的答案-

Git配置——global——取消设置http.proxy

只需点击这个命令,就可以解决问题。

(希望这个答案能帮助到像我这样的人。)

在使用git for Windows时,同样的问题也发生在我身上。

我像往常一样设置代理设置:

git config --global http.proxy http://username:pass@proxy.com:port

在我的情况下,用户名是email,所以它有@符号。 在用户名中用%40编码@符号后,问题就解决了。

因此,不仅在密码中对特殊字符进行编码,而且在用户名中也对特殊字符进行编码。(参考此回答的评论)

虽然晚了,但它应该能帮助像我这样的人: 对我来说有用的是有点方便,但上面没有人说过,所以我添加了它:

解决方案: 我不得不取消设置两个http。Proxy和http . Proxy

git --global --unset http.proxy
git --global --unset https.proxy

我按照下面的步骤做了

Google the error Got to SO Links(here, here) which suggested the same thing, that I have to update the Git Config for proxy setting Damn, can not see proxy information from control panel. IT guys must have hidden it. I can not even change the setting to not to use proxy. Found this wonderful tutorial of finding which proxy your are connected to Updated the http.proxy key in git config by following command git config --global http.proxy http[s]://userName:password@proxyaddress:port Error - "could not resolve proxy some@proxyaddress:port". It turned out my password had a @ symbol in it. Encode @ in your password to %40, because git splits the proxy setting by @ If your userName is a email address, which has @, also encode it to %40. (see this answer) git config --global http.proxy http[s]://userName(encoded):password(encoded)@proxyaddress:port

Baam !它工作!

注:我只是想为像我这样的灵魂回答这个问题,谁会来寻找答案的SO:D

我的问题用这个命令解决了

git config --global http.proxy http://login:password@proxyServer:proxyPort