Jos*_*osh 63 ssh mercurial webfaction
我在使用ssh克隆我的mercurial存储库时遇到了一些困难.
这是我尝试过的:
hg clone ssh://username@username.webfactional.com/path/to/projectname projectname
Run Code Online (Sandbox Code Playgroud)
它给了我这个错误:
remote: bash: hg: command not found
abort: no suitable response from remote hg!
Run Code Online (Sandbox Code Playgroud)
但是,hg安装在服务器上.
我试图按照本网站上的说明进行操作.
ant*_*rsa 96
你需要一个双重//后主机名,即:
hg clone ssh://username@username.webfactional.com//path/to/projectname projectname
Run Code Online (Sandbox Code Playgroud)
Ric*_*ook 36
听起来hg不在你的道路上.Mercurial FAQ提到了针对此问题的可能修复:FAQ/CommonProblems.
remotecmd通过在客户端计算机上打开~/.hgrc(或Mercurial.ini在Windows上)并添加以下内容,将值添加到Mercurial配置中:
[ui]
remotecmd = /path/to/hg
Run Code Online (Sandbox Code Playgroud)
其中/path/to/hg是hg远程服务器上命令的路径.
如果您的Mercurial配置出现问题,可以使用该hg showconfig --debug命令获取Mercurial设置的完整列表以及定义每个配置值的配置文件的路径和行号.
| 归档时间: |
|
| 查看次数: |
54524 次 |
| 最近记录: |