问题如下图所示
一、问题描述
fatal: unable to access ‘https://github.com/ecsoya/fabric-demo.git/’: Failed to connect to github.com port 443: Timed out
二、解决方法
1.首先打开 ipaddress.com 网站,查询以下网址对应地IP
网站地址 :https://websites.ipaddress.com/
需要查询地网址ip
2、github.global.ssl.fastly.net
我的查询结果如下:
2.复制查询后地ip,然后在hosts文件中做出相应地修改(hosts文件路径:C:\Windows\System32\drivers\etc)
修改如下所示:
3. 修改后保存退出,在cmd命令行执行刷新命令
注意:如果无法保存hosts文件,参考以下内容:
https://blog.csdn.net/qq_42102911/article/details/121431276?spm=1001.2014.3001.5501
ipconfig /flushdns
4.完成上述过程,就成功实现了git clone