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人员不会和我分享代理信息。我不知道该怎么办?

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


当前回答

如果你的git已经设置了一些东西,你只是复制了这个文件夹到其他位置,简单地运行:

git config --global http.proxy ""

git会自行调整,之后,你可以再次拉:)

其他回答

我按照下面的步骤做了

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

在你尝试这些花哨的东西之前,试着禁用防火墙和防病毒软件,看看它是否有效。那是我的问题。


选项1:特定于Windows

Restart your machine

选项2:取消设置代理

git config --global --unset https.proxy

我使用的是Tortoise Git,只需在设置中选择Git,并将相同的设置应用到全局。Apply和Ok。为我工作。

我也在用公司的VPN连接GitHub。 我最终只是使用GitHub桌面,这没有任何问题。 绝对不是解决办法,而是变通办法。