I am new to mercurial. Here the question is basic, but I am very confused after googling.
I am programming individually, I have my mercurial installed on local machine (ubuntu 11.04), it is working well. Now I would like to keep a repository on a server, such that I can push and pull whenever good for me. I would like to use SSH and prefer not using any web servers. Is it possible? I have installed the mercurial-server on the server, but what is next? How to setup a remote repository and how to push and pull codes? Help needed indeed. Thanks.
You have various way to publish a Mercurial repository on a server. You can find detailed information on the dedicated wiki page: Publishing Mercurial Repositories
In your case, since you want only have SSH access, the following steps should be enough:
.hgdirectory). You can usescpfor example.Clone the copied repository back to your local machine:
You can now push/pull from your server.
Obviously, you need SSH access to your server.
Also note the double
/after the hostname, this is perfectly normal and you must put them both. The first one is to “terminate” the hostname part and the second one is to indicate that the path start at the root of the distant filesystem.If you want to give access to other people, be sure to have a look at How To Handle Multiple Committers to configure the access rights correctly.