Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This has been discussed before as a bad idea. Unless Dropbox has improved, you'd likely run into syncing issues like I did 6 months ago.

On the other hand, the top voted answer on this SO question demonstrates how one might use a Dropbox directory as a git remote, so that you can push code there intermittently, preventing the trouble with constant writes to the Dropbox.

http://stackoverflow.com/questions/1960799/using-git-and-dro...



I don't understand. Were you trying to put your repository and your working directory in Dropbox? That does, indeed, sound like a very bad idea.

Putting just `.git` in Dropbox seems like it would be fine, though.


That's exactly what I do - "remote" repository in dropbox and push/pull in a "local" copy in my home folder. Works just fine for sharing code between my own PCs. I use it only for my personal projects, sharing repos this way is just asking for repo corruption -- if you both push at the same time, say goodbye to your repo.


Bonus: If you create bare repository in public you can clone(read-only) it with ease from anywhere.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: