Git clone的时候发现以下报错:Failed to connect to github.com port 443: Timed out
第一步:打开https://www.ipaddress.com/,查询如下两个域名,并分别记录下其对应的ip:
1、github.com
2、github.global.ssl.fastly.net
去查找各自对应的IP地址
2.复制查询后的ip,然后在hosts文件中做出相应地修改(hosts文件路径:C:WindowsSystem32driversetc)
140.82.114.3 github.com
151.101.185.194 github.global.ssl.fastly.net
3. 修改后保存退出,在cmd命令行执行刷新命令
注意:如果无法保存hosts文件,参考以下内容:
https://blog.csdn.net/qq_42102911/article/details/121431276?spm=1001.2014.3001.5501
ipconfig /flushdns
4.完成上述过程,就成功实现了git clone
最后
以上就是柔弱小伙最近收集整理的关于Failed to connect to github.com port 443: Timed out的全部内容,更多相关Failed内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复