fatal: unable to access ‘https://github.com/.../.git‘: Could not resolve host: github.com

 今天提交代码的时候命令行总是弹出这个问题

然后去尝试输入下面两行代码,就解决了。

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

 

 

posted @ 2023-05-06 14:56  NicoleYe  阅读(44)  评论(0)    收藏  举报