Live data from Hacker News

The beauty of Git in Dropbox

news.ycombinator.com

31–33 of 33 posts

Re: The beauty of Git in Dropbox

#31
post #20

Earlier quoted context omitted.

And I use different OSes – Mac OS X, Windows 7 and XP, sometimes different git versions. And still no problems.

So you never see conflict messages or conflicted files in your Dropbox? In the few cases I've tried a git working copy on Dropbox -- which is what I believe the author is discussing -- I've had conflicts. For example: $ ls -1 .git/index* index index (blacktip.esquimaux.org's conflicted copy 2013-04-09) index (hammerhead's conflicted copy 2012-01-30) index (holodeck's conflicted copy 2012-01-26 (1)) index (holodeck's…

I ran into this too. It was annoying enough that I ended up just using bitbucket.

Re: The beauty of Git in Dropbox

#32
I've created bare git repositories on Dropbox before and haven't had any problems using them as git remotes. They've only been used by me though, so things might get more tricky if you need multi-user access.

A few have mentioned syncing issues, so if you try the Dropbox approach, think about what the worst that could happen might be? If you can live with that, then give it a go. You can always setup other git remotes for GitHub and / or Bitbucket as well, in addition to a Dropbox remote, if you worried about syncing issues (although you'd obviously have to manually push / pull to these).

Re: The beauty of Git in Dropbox

#33
post #6

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/usin…

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.
Post reply on HN