github克隆代码报错

报错一:
git clone https://github.com/PanJiaChen/vue-admin-template.git报错

Cloning into 'vue-admin-template'...
fatal: unable to access 'https://github.com/PanJiaChen/vue-admin-template.git/': Failed to connect to github.com port 443 after 21219 ms: Timed out

解决方案: 将https换成git

报错二:
Cloning into 'vue-admin-template'...
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Unknown error

解决方案: 在cmd下执行 ipconfig/flushdns,清理DNS缓存

posted @ 2024-12-17 11:39  XCBoy  阅读(141)  评论(0)    收藏  举报