Mercurial clone在本地工作,不通过ssh工作

Mercurial clone在本地工作,不通过ssh工作,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)!

我想不出来

这在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的主目录的。

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

hg clone ssh://myuser@machinex.com//somepath/repos mystuff
否则它会认为它是相对于myuser的主目录的。

如果您的路径恰好是ssh://myuser@machinex.com//cygdrive/d/repos然后给出ssh://myuser@machinex.com/D:/repos是一种尝试。如果你的道路恰好是ssh://myuser@machinex.com//cygdrive/d/repos然后给出ssh://myuser@machinex.com/D:/repos是一种尝试。它对我有用