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

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

问题描述

问 - 我安装了 git 以获取最新版本的 Angular.当我试图跑

Q - I installed git to get the latest version of Angular. When I tried to run

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

我无法连接到 github 443 错误

I got failed to connect to github 443 error

我什至尝试过

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

这让我无法连接没有错误消息.

That gave me failed to connect no error message.

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

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

推荐答案

我按照步骤做了

  1. 谷歌错误

  1. Google the error

转到 SO 链接(此处, here) 建议同样的事情,我必须更新 Git 配置代理设置

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

该死,从控制面板看不到代理信息.IT人员一定把它隐藏了.我什至无法将设置更改为不使用代理.

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

通过以下命令更新了 git config 中的 http.proxy

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

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

  • 错误 - 无法解析代理 some@proxyaddress:port".原来我的密码中有一个 @ 符号.

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

    将密码中的@编码为%40,因为git通过@

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

    如果您的用户名是带有 @ 的电子邮件地址,请将其编码为 %40.(参见这个答案)

    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
    

  • 巴姆!成功了!

    注意 - 我只是想为像我这样的灵魂回答这个问题,他们会在 SO 上寻找答案:D

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

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

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