搜索如何通过代理使用 git 我发现了两个解决方案:
- http_proxy 环境变量
- git 配置 http.proxy
自 export http_proxy=http://proxy.fqdn:8080
制作wget
工作,但不git-svn
,我另外尝试了第二个选项:git config --global http.proxy <a href="http://proxy.fqdn:8080" rel="noreferrer noopener nofollow">http://proxy.fqdn:8080</a>
。但没有成功。 Wireshark 仍然告诉我 git-svn 直接联系远程存储库。唉:
git svn clone -s http://svn.wp-plugins.org/yak-for-wordpress ZM-Schicht Anforderung gescheitert: OPTIONS von »http://svn.wp-plugins.org/yak-for-wordpress«: Konnte keine Verbindung zum Server herstellen (http://svn.wp-plugins.org) at /usr/lib/git-core/git-svn line 1916
我是否遗漏了什么,或者这是 git-svn 中的错误?有人尝试通过代理成功克隆 svn 存储库吗?
最佳答案
确保您不必指定用户名和密码(除了代理地址之外)。
但也要考虑将相同的信息 (http.proxy
) 添加到 SVN 本身(如 this thread ):
Adding proxy information in the
[global]
section in$HOME/.subversion/servers
fixed the issue.
关于linux - git-svn 忽略 http 代理 (debian),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9057111/