Archlinux git时提示“无法访问 ..... :failed to connect to 127.0.0.1 port 7890 after 0ms: 拒绝连接

问题描述

最近想配置zsh的时候使用git克隆,结果提示

致命错误:无法访问 'https://github.com/zsh-users/zsh-syntax-highlighting.git/':failed to connect to 127.0.0.1 port 7890 after 0 ms: 拒绝连接

按照网上的方法使用

git config --list

无输出,那自然关于git config的相关设置方法都没有作用

解决方法

编辑  /etc/environment  文件,删除其中关于代理的代码即可

sudo vim /etc/environment


版权声明:本文为xuejian__原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。