无法克隆git存储库
问题描述:
我想克隆一个git存储库,但出现此错误。无法克隆git存储库
fatal: unable to access
'https://github.com/udacity/Sunshine-Version-2.git/': Failed to
connect to 10.1.1.9 port 8080: Timed out
早些时候,我在我的大学背后的代理,但我现在使用我的家庭互联网。
我尝试禁用代理使用命令git config --global --unset core.gitproxy
但仍然得到那个致命的错误。
请帮我解决这个问题。
编辑:我已经尝试了一切你们建议,但没有任何工作。这是快照。 Snapshot
答
检查,如果您有任何地方的代理指令:
git config --global --unset http.proxy
git config --global --unset https.proxy
git config --local --unset http.proxy
git config --local --unset https.proxy
然后检查你的操作系统环境变量。例如,在Windows上:
set http
这将显示任何以http开头的变量(小写或大写)。
如果您发现任何,取消或修改它们(unset
在Linux上,set xxx=
在Windows上)
的OP Akhilesh Yadav证实了这是一个环境变量问题
env|grep -i proxy
unset ..._proxy
检查用户设置:
cd
grep -i proxy .*
.bashrc
或.profile
可以声明那些代理变量:编辑文件并删除或注释这些指令。
*“10.1.1.9 port 8080”* - 如果您仍然收到*错误,那么您仍然支持一些代理。 – poke
现在我不支持任何代理。我的git shell被配置为连接到那个代理服务器,这就是我得到这样的错误的原因。我想删除该配置。 –
为了帮助我们回答这个问题,您应该编辑它以包含'git remote -av'的输出,因为端口可能会被硬编码到远程的URL中。 –