git config --global --unset http.proxy 
git config --global --unset https.proxy

解决方案:cmd下命令执行 ipconfig/flushdns
清理dns缓存

转发自:完美解决 fatal: unable to access ‘https://github.com/.../.git‘: Could not resolve host: github.com-阿里云开发者社区

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐