目前,我正在研究TensorFlow教程,需要下载源代码。但是,当我运行git clone ...
时,出现以下错误:
C:\Git\cmd>git clone https://github.com/tensorflow/nmt/
Cloning into 'nmt'...
fatal: unable to access 'https://github.com/tensorflow/nmt/': Could not resolve proxy: aproxy
我正在家庭网络中工作,并且拥有最新版本的Git。
我尝试了以下命令,但没有成功:
git config --global --unset https.proxy
有什么想法吗?
答案 0 :(得分:4)
Git有自己的代理。
要重置git代理,请执行以下操作:
extendedComponent(className="globalCSS)
要重置系统代理,请执行以下操作:
在Ubuntu上,您可以使用设置代理
git config --global https.proxy ""
git config --global http.proxy ""
然后运行
export http_proxy=""
export https_proxy=""
export all_proxy=""
答案 1 :(得分:0)
转到您的克隆存储库,然后键入:
git config -l --show-origin
检查是否在任何地方看到任何http(s).proxy
设置(因为git config --global --unset只处理其中一个配置文件)
还要检查您所在的CMD会话/ bash(set
或env
)和make sure no HTTP(S)_PROXY
variable was defined中的环境变量。