use hg to synchronize my project between my two computer

Posted by hguser on Stack Overflow See other posts from Stack Overflow or by hguser
Published on 2010-04-01T09:00:53Z Indexed on 2010/04/01 9:03 UTC
Read the original article Hit count: 307

Filed under:

Hi:

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?

© Stack Overflow or respective owner

Related posts about hg