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

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


当前回答


选项1:特定于Windows

Restart your machine

选项2:取消设置代理

git config --global --unset https.proxy

其他回答

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

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

如果你使用的是Windows系统,而不是代理系统,那么重启电脑就可以解决这个问题。

如果使用SSH配置文件,我的问题是~/。Ssh /config指定不正确。通过HTTPS启用SSH连接

Host github.com
  Hostname ssh.github.com
  Port 443

我通过将dns名称服务器更改为8.8.8.8解决了我的问题

我得到了:

git config --global http.proxy http://{domain}\\\{username}:{password}@{proxy ip}:{proxy port}

git config --global http.sslverify false