如何使用svn + ssh与Tortoise SVN从命令行 [英] How to use svn+ssh with Tortoise SVN from the command line

查看:1013
本文介绍了如何使用svn + ssh与Tortoise SVN从命令行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用TortoiseSvn的Windows 7工作站上,我无法尝试使用以下语法结帐:

I'm having trouble trying to checkout a repo using the following syntax on a Windows 7 workstation with TortoiseSvn:

svn co svn+ssh://user@ip/repo .

我用来测试这个问题的方法:

What I've done to test this issue:


  • 修改TortoiseSvn的网络设置以指向..\TortoisePlink.exe

  • 成功建立了与目标计算机的ssh连接,

  • 已使用OpenSsh从运行Ubuntu的工作站成功检出回收

上面的语法从命令行在Windows 7工作站上我得到的错误:

When I try to do the above syntax from the command line on the Windows 7 workstation I get the error:

svn: E720087: Unable to connect to a repository at URL 'svn+ssh:///user@ip/repo'
svn: E720087: Can't create tunnel:The parameter is incorrect.

有趣的是,如果我使用turtoise gui浏览到repo,我可以成功地打开并检查回购。

Interestingly, if I use the tortoise gui to browse to the repo I can successfully open and check out the repo. But I need to do it from the command line for scripting purposes.

任何建议?

推荐答案

对于svn + ssh使用Tortoise,请确保%SVN_SSH%设置为您的ssh客户端(可能是来自Tortoise或Putty的plink.exe)并且必须使用正斜杠 / 或转义的反斜杠 \\ 写入路径。

For svn+ssh to work with Tortoise, make sure %SVN_SSH% is set to your ssh client (probably plink.exe from Tortoise or Putty) and the path must be written either with forward slashes / or with escaped backslashes \\.

尝试在转义反斜杠时尝试使用plink的绝对路径设置%SVN_SSH%,类似于 C :\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe 而不是 .. \TortoisePlink.exe

Try to set %SVN_SSH% with the absolute path of plink while escaping the backslashes, something like C:\\Program Files\\TortoiseSVN\\bin\\TortoisePlink.exe instead of ..\TortoisePlink.exe

这篇关于如何使用svn + ssh与Tortoise SVN从命令行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆