Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ssh/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何在Ubuntu中克隆HG/Mercurial远程存储库并运行sh文件?_Ubuntu_Ssh_Mercurial - Fatal编程技术网

如何在Ubuntu中克隆HG/Mercurial远程存储库并运行sh文件?

如何在Ubuntu中克隆HG/Mercurial远程存储库并运行sh文件?,ubuntu,ssh,mercurial,Ubuntu,Ssh,Mercurial,我想克隆远程HG/Mercurial存储库并从终端sh文件运行。想知道哪些步骤需要更详细的信息。所以,首先我认为需要安装mercurial。我需要mercurial服务器还是只需要mercurial 所以在Ubuntu中,命令是 sudo apt-get install mercurial-server 然后需要创建SSH密钥并添加到远程存储库(Ubuntu): 是吗?还有更多的帮助和细节吗 是吗?还有更多的帮助和细节吗 不需要。只需安装mercurial,然后进行克隆,类似于git或其他任何

我想克隆远程HG/Mercurial存储库并从终端sh文件运行。想知道哪些步骤需要更详细的信息。所以,首先我认为需要安装mercurial。我需要mercurial服务器还是只需要mercurial

所以在Ubuntu中,命令是

sudo apt-get install mercurial-server
然后需要创建SSH密钥并添加到远程存储库(Ubuntu):

是吗?还有更多的帮助和细节吗

是吗?还有更多的帮助和细节吗

不需要。只需安装
mercurial
,然后进行克隆,类似于
git
或其他任何东西,如果它是公共可访问的repo:

$ hg clone https://www.mercurial-scm.org/repo/hello my-hello

如果不是,则需要使用不同的通道(web UI?)设置公钥。它取决于服务/服务器。

它不是公共可访问的回购。但我有用户名和密码。所以我需要创建SSH密钥并添加到远程repo。我该怎么做?然后我可以使用ssh://user_name@repo.name/../file\u name
$ hg clone https://www.mercurial-scm.org/repo/hello my-hello