Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Having both a PC & Mac for work, I would like to synchronize development between both devices. I could just use Dropbox or Google Drive, but I would like to have version control (git or otherwise).

Is there a way to run a version control system (git preferably) between these two devices?

share|improve this question
add comment

2 Answers

Several ways.

The one I use is use a source directory on the local PC or MAc drive and then push to a git clone in a dropbox directory. I can then pull from or push to the dropbox directory locally and dropbox symcs to the other machines.

If both machines are on the same network you can create a git server on one (easier on the Mac) and push/pull to the other machine

share|improve this answer
    
Is it possible to use a git client on each machine to work with the dropbox repo? –  Jason Nov 6 '13 at 2:22
    
Yes that is what I tried to explain –  Mark Nov 6 '13 at 9:14
add comment

I was facing the same question a while ago, and I decided against a solution based on Dropbox or similar tools.

Take a look at https://bitbucket.org/ - they offer free private Git repositories.

If you don't mind hosting your stuff on a public repo, you could also use GitHub, but if it has to be private, check out BitBucket. This is a real Git host, so you can pull/push, even if your machines are on different networks.

Dropbox always sounded like the wrong way for this. It can certainly work, but why do it like this when you can use a real Git host for free?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.