I currently use a Mac Pro for Xcode development, but am considering buying a MacBook Air when the newer models are released. How should I collaborate with myself when using both machines on the same project? Should I use Git, or should I just acess the Mac Pro as a networked drive from the MacBook, or something else?
5 Answers
You should definitely use a SCM system, even when only working on one machine. Which one you use is not that important. I would also recommend keeping the working directories on the two machines separate rather than using a directory shared across the network. Less chance for cluttering your environment, and allows you to work when the network is unavailable or down.
- 1,953
I'm not a mac person but I ran into your same situation a while back. I used Mercurial with Dropbox. Basically, I had my repository in Dropbox and had both machines configured to work through that folder. Alternatively, you could use BitBucket or Github to achieve a similar thing.
- 1,153
Using SCM is a good practice, it naturally provides for backup in case one machine goes down. Also, it helps in those scenarios where you want to change something in code and test it, but want a clean copy at hand in case it bombs. I have personally used two dev machines to work on two different bugs in parallel. Without the work on either of them affect the other. It is productive.
Also, a UI tip. Working on two machines sitting next to each other is a nightmare for switching keyboards and mice. This utility (synergy-foss.org) lets you use a single pair of keyboard-mouse work seamlessly across multiple machines.
- 143
I have to work on the same project from 3 different pcs (and locations). My team and I use SVN and it seems to me the most flexible and clean solution.
Therefore from my experience I would suggest SVN or a similar approach.
- 547
You can fudge a sort of source control system using DropBox or similar, or Live Mesh as I did, but ultimately I think you will find that bunging someone $30 a year for basic hosted Subversion or Git will be worth it. If nothing else it'll get backed up, and you'll have forking and access to previous versions and all that good stuff.
- 436