Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6927089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:00:11+00:00 2026-05-27T11:00:11+00:00

I am new to mercurial. Here the question is basic, but I am very

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T11:00:12+00:00Added an answer on May 27, 2026 at 11:00 am

    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:

    1. Copy your actual local repository somewhere on your server (including your .hg directory). You can use scp for example.
    2. Clone the copied repository back to your local machine:

      hg clone ssh://myhostname.com//path/to/directory
      
    3. 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.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to Mercurial and after a cleanup of the image folder in
New to Chrome programming, but am more or less familiar with Javascript. Goal: A
New to Mongo, taking on the analytics quest and have a schema question. I'm
I'm a new mac user and recently installed mercurial on it. Id like to
I'm new to Mercurial and what I'm starting to realize is that my basic
I am very new to Hg so please excuse my ignorance here... I am
I am planning to use mercurial for a new project but I'm having some
I have Mercurial 1.4 in my CentOS6, but I need to use the Eclipse
This is not exactly a programming question, however I think it fits here better
I've read several posts here about ignoring files in Mercurial but I'm stumped on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.