亲测解决ubuntu fatal: unable to access github: Could not resolve proxy: https

这个问题我估计是设置过代理,改过proxy导致。解决方法如下。

解决方法

打开命令窗口,输入

unset http_proxy
http_proxy=""
unset https_proxy
https_proxy=""

这时候再输入

echo $http_proxy
echo $https_proxy

可以看到是空的。
在这里插入图片描述

关闭命令窗口再打开,即可使用git clone,不影响代理设置。
在这里插入图片描述

posted @ 2021-01-23 16:41  狂小虎  阅读(533)  评论(0)    收藏  举报