我使用git svn与subversion repos同步:
$ mkdir prj && cd prj
$ git svn init http://url/to/repos/branches/experimental
$ git svn fetch
Run Code Online (Sandbox Code Playgroud)
并收到错误消息:
RA layer request failed: OPTIONS of 'http://url/to/repos/branches/experimental':
Could not read status line: connection was closed by proxy server
(http://url/to/repos) at /usr/bin/git-svn line 1352
Run Code Online (Sandbox Code Playgroud)
为什么以及如何解决这个问题?
我的情况是,我可以ssh到放置git repos的ComputerB(Code repos).但我的本地连接速度太慢,无法克隆代码.我可以ssh到更快的另一台机器(ComputerA),所以我想通过ComputerA克隆代码.
这就是我做的:
ssh tunnel ssh tunnel
MyComputer ----------> ComputerA (I can ssh to) ----------> ComputerB (where the Code repos is and I can ssh to but too slow)
Run Code Online (Sandbox Code Playgroud)
使用这样的命令:
ssh -L1234:ComputerA_ip:22 Code_repos_ip
Run Code Online (Sandbox Code Playgroud)
然后:
git clone git+ssh//localhost/repos local_repos (how can I assign the port 1234?)
Run Code Online (Sandbox Code Playgroud)
如果这不起作用,我还能做什么?