通过 SSH 克隆 Mercurial 存储库 [英] Cloning a Mercurial repository over SSH
问题描述
我在通过 ssh 克隆我的 mercurial 存储库时遇到了一些困难.
这是我尝试过的:
hg clone ssh://username@username.webfactional.com/path/to/projectname projectname
它给了我这个错误:
remote: bash: hg: command not found中止:远程 hg 没有合适的响应!
hg 安装在服务器上.
我试图按照本网站上的说明进行操作.
听起来像 hg
不在您的路径上.Mercurial FAQ 提到了针对此问题的可能修复:FAQ/CommonProblems.>
通过在您的客户端计算机上打开 ~/.hgrc
(或 Windows 上的 Mercurial.ini
),将 remotecmd
值添加到您的 Mercurial 配置中并添加以下内容:
[ui]remotecmd =/path/to/hg
其中 /path/to/hg
是远程服务器上 hg
命令的路径.
如果您的 Mercurial 配置有问题,您可以使用 hg showconfig --debug
命令获取 Mercurial 设置的完整列表以及配置的路径和行号定义每个配置值的文件.
I'm having some difficulty cloning my mercurial repository over ssh.
Here's what I have tried:
hg clone ssh://username@username.webfactional.com/path/to/projectname projectname
It's giving me this error:
remote: bash: hg: command not found
abort: no suitable response from remote hg!
hg is installed on the server, however.
I was trying to follow the instructions on this website.
Sounds like hg
is not on your path. The Mercurial FAQ mentions possible fixes for this issue: FAQ/CommonProblems.
Add the remotecmd
value to your Mercurial configuration by opening ~/.hgrc
(or Mercurial.ini
on Windows) on your client machine and adding the following:
[ui]
remotecmd = /path/to/hg
where /path/to/hg
is the path to the hg
command on the remote server.
If you're having problems with your Mercurial configuration, you can use the hg showconfig --debug
command to obtain a full list of your Mercurial settings along with the path and line number of the configuration file that defines each configuration value.
这篇关于通过 SSH 克隆 Mercurial 存储库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!