fatal: 无法访问 ‘https://gitee.com/***.git/‘:Could not resolve proxy: http
系统:Linux version 5.4.0-58-generic (buildd@lcy01-amd64-004) (gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04))
git版本:git version 2.25.1
出错原因:设置了proxy后git clone 出错,报错信息
正克隆到 'yolov5'...
fatal: 无法访问 'https://github.com/ultralytics/yolov5.git/':Could not resolve proxy: http
解决方法:
Git有自己的代理。
重置git代理:
git config --global https.proxy ""
git config --global http.proxy ""
重置系统代理:
在Ubuntu上,您可以使用以下命令设置代理
export http_proxy=""
export https_proxy=""
export all_proxy=""
然后跑即可!
git clone