简体   繁体   中英

How clone HG/Mercurial remote repository in Ubuntu and run sh file?

I would like to clone remote HG/Mercurial repository and run from terminal sh file. Would like to know which steps needed in more details. So, first I think need to install mercurial. Do I need the mercurial server or just mercurial?

So in Ubuntu the command is

sudo apt-get install mercurial-server

Then need to create SSH key and add to remote repository (Ubuntu):

ssh-keygen -t rsa
ssh-add
ssh-copy-id  ...

True? any more help and details?

True? any more help and details?

No. Just install mercurial and then clone, similar way like with git or whatever, if it is public accessible repo:

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

If it is not, you would need to set the public key using different channel (web UI?). It depends on the service/server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM