解决fatal: unable to access ‘https://github.com……‘: Failed to connect to

问题

git clone时会报如下错误

 

解决办法:

1. 在cmd下执行 ipconfig/flushdns,清理DNS缓存

 

2. 重新执行 git clone https://github.com/.../.git 即可成功

posted @ 2023-06-01 09:16  tianxinya  阅读(9188)  评论(0编辑  收藏  举报