GitHub - 无法连接到github 443窗口/无法连接到gitHub - 没有错误 [英] GitHub - failed to connect to github 443 windows/ Failed to connect to gitHub - No Error

查看:2919
本文介绍了GitHub - 无法连接到github 443窗口/无法连接到gitHub - 没有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Q - 我安装了git以获取最新版本的Angular。当我尝试调用

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

我没有连接到github 443错误



我甚至尝试

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

$ p
$ b

这让我无法连接任何错误信息。



我身后公司防火墙。当我转到控制面板 - > Internet选项 - >时,我看不到我的代理详情。连接 - >局域网设置 .IT球员不与我分享代理信息。我不知道该怎么办?



我终于设法做到了。我会更新我为了
所采取的程序。只是想编译我所做的所有步骤,以使其正常工作。

解决方案

好的,我做了以下步骤:


  1. Google错误


  2. 得到SO链接(这里这里),它提出了同样的事情,我必须更新Git配置代理设置


  3. 该死的,无法从控制面板看到代理信息。 IT人员必须隐藏它。我甚至无法改变设置,以不使用代理。

  4. 发现这个奇妙的 tutorial 找到你连接的代理服务器。
  5. 通过以下命令更新了git config中的 http.proxy





git config --global http.proxy
http [s]:// userName:password @ proxyaddress:port





  1. 错误 - 无法解析代理某些@ proxyaddress:port 。原来我的密码里有@符号。


  2. 将密码中的 @ 编码为%40 因为git会通过@拆分代理设置





git config --global http .proxy
http [s]:// userName:password(encoded)@proxyaddress:port


Baam!它的工作!

注意 - 我只是想回答这个问题,像我这样的人,谁会来寻找这样的答案:D


Q - I intalled git to get the latest version of Angular. When i tried called

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

I got failed to connect to github 443 error

I even tried

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

That gave me failed to connect no error message.

I am behind my company firewall. I can not see my proxy details when I go to control panel->Internet Options -> connections -> lan setting.IT guys are not sharing proxy information with me. I do not know what to do ??

I finally managed to do it. I will update the procedure that I had taken in order to Just wanted to compile all the steps that I did to get it to work

解决方案

Well I did following steps

  1. Google the error

  2. Got to SO Links(here, here) which suggested the same thing, that I have to update the Git Config for proxy setting

  3. 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.

  4. Found this wonderful tutorial of finding which proxy your are connected to

  5. Updated the http.proxy key in git config by following command

git config --global http.proxy http[s]://userName:password@proxyaddress:port

  1. Error - could not resolve proxy some@proxyaddress:port. It turned out my password had @ symbol in it.

  2. Encode @ in your password to %40 because git splits the proxy setting by @

git config --global http.proxy http[s]://userName:password(encoded)@proxyaddress:port

Baam ! It worked !

Note - I just wanted to answer this question for souls like me, who would come looking for answer on SO :D

这篇关于GitHub - 无法连接到github 443窗口/无法连接到gitHub - 没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆