Cloning a Mercurial repository over SSH

后端 未结 6 1140
不知归路
不知归路 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条回答
  •  庸人自扰
    2020-12-13 02:14

    You can use Sourcetree, TortoiseHg, Mercurial from the terminal, or any client you like to clone your Mercurial repository. These instructions show you how to clone your repository using Mercurial from the terminal.

    1. From the repository, click + in the global sidebar and select Clone this repository under Get to work.
    2. Copy the clone command (either the SSH format or the HTTPS). If you are using the SSH protocol, ensure your public key is in Bitbucket and loaded on the local system to which you are cloning.
    3. From a terminal window, change to the local directory where you want to clone your repository.
    4. Paste the command you copied from Bitbucket, for example:
      CLONE OVER HTTPS:
      $ hg clone https://username@bitbucket.org/teamsinspace/hg-documentation-tests
      CLONE OVER SSH:
      $ hg clone ssh://hg@bitbucket.org/teamsinspace/hg-documentation-tests
      If the clone was successful, a new sub-directory appears on your local drive.
      This directory has the same name as the Bitbucket repository that you cloned.
      The clone contains the files and metadata that Mercurial requires to maintain the changes you make to the source files.

提交回复
热议问题