Cloning a Mercurial repository over SSH

后端 未结 6 1138
不知归路
不知归路 2020-12-13 01:49

I\'m having some difficulty cloning my mercurial repository over ssh.

Here\'s what I have tried:

hg clone ssh://username@username.webfactional.com/pa         


        
6条回答
  •  Happy的楠姐
    2020-12-13 02:01

    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.

提交回复
热议问题