views:

104

answers:

1

I have a portal development work in process... I had some troubles time to time like losing, overwriting wrong files, etc... So I decided to go for Mercurial for this development. My first experience with Source Control.

I work on server [bluehost] for this project, is there any way to keep update backups at local? Do I have to setup Mercurial to Bluehost? any way to sync changes on server to my local mac?

+3  A: 

Here is a proposed configuration:

  • a Mercurial repository on your server. That repository will be used for the deployment (using export for example) of the new revisions of your website.
  • as many clones of that repository on your laptop, desktop, etc... any place you'll work on.

You work on (one of) your local clone, perform commits, etc... When you're happy with your work, you push the changes to the repository on your server. There, you can integrate your changes, and eventually promote a new revision of your website (e.g. on a tagged revision).

In order to keep in sync, you just have to pull the latest update from your server's repository, or any local one, if you prefer to do some prototyping.

Anyway, I would strongly recommend that you read both the workflows guide as well as the HG Book. They are easy to understand even for someone unexperienced in VCS.

gizmo
thanks for great reply!! So it looks like I need to make changes at my local files, than upload [push] to server... I was trying to find out how to work on server straight away, I dont run the project at my localhost. :/
artmania