git close 出现 fatal unable to access 的解决方法

git clone出现 fatal: unable to access 'https://github.com/...'的解决办法。
 
1、先检查你是否能 ping 通 github.com
0
 
2、如果 Ping 不通的话。先到这里查看一下 github 的实际 ip,
然后将 ip 加入到 host 文件。
140.82.114.3 github.com
然后再 ping 一下
posted @ 2022-05-07 14:42  贝尔塔猫  阅读(281)  评论(0)    收藏  举报