git相关

2019-02-13  本文已影响0人  Tumaine

安装git后,无法从github上克隆https 文件
显示为
fatal: unable to access 'https://github.com/jackgitgz/CnblogsSpider.git/': Failed to connect to 127.0.0.1 port 34659: 拒绝连接
好像是因为之前我加了代理,但是在我卸载git重装后,仍然没有取消代理。然后我直接删除了.gitconfig文件后,变成了
fatal: unable to access 'https://github.com/jackgitgz/CnblogsSpider.git/': Failed to connect to 127.0.0.1 port 45997: 拒绝连接
然后在终端输入env|grep -i proxy后显示

https_proxy=http://127.0.0.1:45997/
http_proxy=http://127.0.0.1:45997/
no_proxy=localhost,127.0.0.0/8,::1
NO_PROXY=localhost,127.0.0.0/8,::1
HTTPS_PROXY=http://127.0.0.1:45997/

最后输入unset https_proxyunset HTTPS_PROXY把相应的代理关掉后,就成功了

上一篇 下一篇

猜你喜欢

热点阅读