我的 msysGit(Windows 上的 Git)在我的家用机器上工作得很好,但是在工作中,我们在 Microsoft ISA 代理后面,当我执行 git clone 时出现以下错误:
H:\>git clone git://github.com/akitaonrails/vimfiles.git
Initialized empty Git repository in H:/vimfiles/.git/
github.com[0: 65.74.177.129]: errno=Invalid argument
fatal: unable to connect a socket (Invalid argument)
我尝试将 http_proxy 环境变量设置为:
http://our-proxy-server:8088
我已经设置了 git http.proxy 配置指令:
git config --global http.proxy http://our-proxy-server:8088
以上都没有区别。
http://
使用而不是执行 git clone会git://
产生以下结果:
H:\>git clone http://github.com/akitaonrails/vimfiles.git
Initialized empty Git repository in H:/vimfiles/.git/
fatal: http://github.com/akitaonrails/vimfiles.git/info/refs download error - The requested URL returned error: 407
407 当然是身份验证错误。
所以我的问题是:有没有人设法让 git 从代理后面工作,特别是 ISA 代理?我不知道这是否值得追求。非常感谢任何帮助。
谢谢!