开发者

syncing project between pc and laptop

I am developing an Android app on my Windows 7 Home PC using Eclipse. I have just bought a laptop and would like to be able to take my project with me on the laptop. I have installed Eclipse and the Android SDK etc on the laptop and using a usb memory stick carried the project folders over to the laptop. I then used import to install my project into the laptop Eclipse environment. So far so goo开发者_如何学运维d. Now if I make changes on my PC what would be the simplest way to update the project on the laptop. I have read on here about git etc but don't want to get into that complexity just yet.


I think may be not the simpliest but most correct way is to use some source control system DCVS such as Git or Mercurial might be the best choise since they don't require central server storage. Not only this will let you to sync between different development machines but also keep history of your changes.


Using Dropbox would be an option and it would definitely be kind of easy.

But I think you should simply use a Revision Control System like GIT (there are a lot more). You might be a little bit more difficult than using Dropbox in the beginning but it will be more comfortable than Dropbox after a short while.

Git has the advantage that it is a distributed revision control system (no server required).

You might want to have a look at these questions:

  • What is the Difference Between Mercurial and Git?
  • Git for beginners: The definitive practical guide

and here are many more:

  • Highest Voted 'version-control' Questions - Stack Overflow


An easy way would be to use Dropbox - http://www.dropbox.com/. It will automatically sync files between various computers.


I would strongly suggest you look into Mercurial, it is similar to Git however I find it slightly easier to use and it has better Windows support. Then sign up for a Bitbucket account which is free and will let you sync your code from anywhere.

Whilst I realise that version control might seem a little daunting at first getting used to it will quickly pay dividends. You will get into a right nightmare of what was that change I made last night that broke everything? And keeping tonnes of copies of the code in seperate for each time you make a small change. Version control makes all this nice and easy to handle and is a great habit to get into early.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜