mercurial - Mercurial克隆在本地工作,不能在ssh上工作

标签 mercurial ssh

无法解决这个问题。

这可以在machinex.com上本地运行:

hg clone /somepath/repos mystuff

但是我可以远程尝试:
hg clone ssh://myuser@machinex.com/somepath/repos mystuff

我得到这个:
myuser's password: [enter password correctly]
remote: abort: There is no Mercurial repository here (.hg not found)!
abort: no suitable response from remote hg!

我也可以ssh进入machinex.com。

任何帮助是极大的赞赏。

最佳答案

如果通过ssh的路径相对于根目录(即/),则需要额外的斜杠:

hg clone ssh://myuser@machinex.com//somepath/repos mystuff

否则,它认为它与myuser的主目录有关。

关于mercurial - Mercurial克隆在本地工作,不能在ssh上工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7643045/

相关文章:

python - 使用 python 2.7 在 mac os x 10.9 中安装 hg 时出错

hadoop - ssh:无法解析主机名。名称或服务未知

SSH连接一直卡在终端

svn - 对于家庭项目,Mercurial 或 Git(或其他 DVCS)能否提供比 Subversion 更多的优势?

version-control - 你能阻止默认推送,但允许拉吗?

mercurial - Hadoop 项目的存储库组织

mercurial - 本地 Mercurial 忽略文件

ssh - Capistrano 未能通过 SSH 公钥身份验证,但所有命令仍然成功

windows-xp - Cygwin sshd 服务的 SSH 密码/用户问题

macos - 访问自己在 Macbook 中生成的 ssh key