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

  • Home
  • SEARCH
  • 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 709347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:29:39+00:00 2026-05-14T04:29:39+00:00

I have two computer : the desktop in my company and the portable computer

  • 0

I have two computer : the desktop in my company and the portable computer in my home.

Now I want to use the hg to synchronize the project between them using a “USB removable disk”.

So I wonder how to implement it?

THe pro in my desktop is : D:\work\mypro.

I use the following command to init it:

hg init

Then I connect to the USB disk whose volume label is “H”,and get a clone using:

cd H:
hg init
hg clone D:\work\mypro mypro-usb

ANd in my portable computer I use:

cd D:
hg clone H:\mypro-usb mypro-home

However I do not know how to do if I modify some files(remove or add and modify) in the mypro-home,how to make the mypro-usb changed synchronizely,also I want the mypro in my desktop synchronizely.

How to do it?

—————The following is added after I get an answer from richj—————-

to richj:

Thanks for your reply.

The following is my practice: Pro-Com is the project(initialized as a repository) in my desktop, Pro-USB is the repository in my USB, the Pro-Home is the repository in my home computer.

When I make some change in the Pro-Com, I use the following command:

hg add
hg push Pro-USB

Then I change the directory to Pro-USB,using:

hg update
hg push Pro-Home

In my home computer I run:

hg update
(make some edition)
hg commit
hg push Pro-USB

Then the repository in the USB is the same as that of my home computer,I can push it to my desktop.

In my opinion,operation between repository can be done just by “hg push” and “hg pull”,the other commands like “hg update” “hg import” just work between a working-copy and its repository.

Is my understanding right?

  • 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-14T04:29:40+00:00Added an answer on May 14, 2026 at 4:29 am

    To push changes from your working repositories back to your USB drive:

    hg push
    

    To get the latest changes from your USB drive:

    hg pull
    hg update
    

    These two commands can be combined together like this:

    hg pull -u
    

    If you want to see which change sets are available to be pushed or pulled use:

    hg outgoing
    hg incoming
    

    respectively. Any changes that you make to your local file system must be committed to the repository using:

    hg commit
    

    before they can be pushed or pulled.

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

Sidebar

Related Questions

I have one folder synced between two computers (using one of online sync tools).
So I have two works computer, one that I use mainly for development, the
I'm using Eclipse to develop an app and I have two computers (a desktop
I have two computers and I want both of them to be able to
I have two computers that I use for development, one at home and one
I have used two GUIDs to open the folders My Computer and My Documents
I've got two hard disks in my computer, and have installed Solaris 10u8 on
I have long-lasting TCP connection between two computers (second not under my control). Second
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two Domain classes (Drives & Computer) class Computer { static hasMany =

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.