【发布时间】:2016-12-19 06:55:10
【问题描述】:
我工作的公司最近从网络中删除了代理。
我无法让 git 忘记代理。它仍然使用旧的代理设置。
我试过了:
git config --system --unset https.proxy
git config --system --unset http.proxy
git config --global --unset https.proxy
git config --global --unset http.proxy
也试过了,
git config --global --unset core.gitproxy
git config -l 的输出
user.name=my.name
user.email=my.email.address
user.user=my.name
core.autocrlf=input
我正在使用 Manjaro Linux(基于 Arch Linux)。我从 /etc/environment 中删除了代理设置。
唯一有效的就是做
export https_proxy=""
export http_proxy=""
在发出任何 git 命令之前。
在 bashrc 或 /etc/profile 中没有给出代理设置。
我也无法 ssh。
浏览器、Maven 和其他浏览器工作正常。任何帮助将不胜感激。
【问题讨论】:
-
从
ssh命令 (ssh -vvv) 发布详细日志。你看到了什么错误? -
debug1:读取配置数据 /etc/ssh/ssh_config debug2:解析“{ip address}”端口 22 debug2:ssh_connect_direct:needpriv 0 debug1:连接到 {ip address} 端口 22。连接超时ssh:连接到主机{ip地址}端口22:连接超时
-
/etc/environment更改后你重启了吗?~/.profile怎么样。~/.bash_profile,~/.pam_environment? -
还验证
git config -l的输出是否包含任何代理提及,并相应地更新问题。
标签: linux git ssh proxy archlinux