git push origin HEAD时 报错 fatal: unable to access 'https://git.xxxx.com:3000/xxxx.git/': Could not resolve host: xxxx

今天提交代码时报错 fatal: unable to access 'https://git.xxxx.com:3000/xxxx.git/': Could not resolve host: git.xxxx.com

 

网上查了下好像时因为代理的原因,但是我都没有设置代理,然后就报错了,但是之前是没有这个问题的,没有深入的去找原因,只找到了解决办法。

 

设置代理

git config --global http.proxy 

再取消这个设置: 
git config --global --unset http.proxy 

然后再push,成功了!

posted @ 2020-09-16 10:14  凹润之之之  阅读(416)  评论(0编辑  收藏  举报