欢迎光临
一起探讨学习进步

git clone提示error: Failed to connect to github.com port 443: Connection refused while accessing

今天在用git clone命令的时候,遇到了一个非常诡异的错误,提示 :

error: Failed connect to github.com:443; Connection refused while accessing https://github.com/JasonLiu1991/git.git/info/refs 

fatal: HTTP request failed

1.jpg

查了半天资料, 发现是hosts文件的问题,只要执行vim /etc/hosts,然后删除github.com相关的域名记录就OK了,如下图所示:

2.jpg

只需要屏 蔽前三行就ok了,记录下,以备随时查看。

未经允许不得转载:git clone提示error: Failed to connect to github.com port 443: Connection refused while accessing

评论 0

评论前必须登录!