git克隆问题记录
一、 Failed to connect to github.com port 443 after 2076 ms: Connection refused
1、问题
在使用Git克隆GitHub中的内容时:
克隆失败,命令窗口提示错误:
Failed to connect to github.com port 443 after 2076 ms: Connection refused
2、解决方法
2.1找到GitHub的ip地址
2.2在电脑中找到文件夹中的文件
C:\Windows\System32\drivers\etc
2.3添加github的地址到文件中,保存
3、参考博文
Failed to connect to github.com port 443: Connection refused问题解决_YIMForever的博客-CSDN博客
ubuntu18.04 git clone:Failed to connect to github.com port 443: Connection refused_das白的博客-CSDN博客
4、综述
过程就是把GitHub的地址添加到host文件中。至于为什么,暂时不知道。