Git fatal: unable to access '': Failed to connect to github.com port 443: Operation timed out

1、首先ping一下看看


image.png

一部分超时,但是在网页上又能打开github。
2、打开known_hosts文件夹【~/.ssh/known_hosts】

搜索GitHub,如下
image.png

3、将这一行中的IP改为第一步ping github的IP【我的是 52.74.223.119】

4、保存,再次pull就OK了。

参考https://lequ7.com/guan-yu-git-ru-he-jie-jue-gitpushpull-cao-zuo-shi-chu-xian-de-operationtimedout.html

你可能感兴趣的:(Git fatal: unable to access '': Failed to connect to github.com port 443: Operation timed out)