Re:How to use Dropbox as a git server?
by wladimir on Thursday February 17, 2011 @08:48AM
(#2230854)
Do note that, with multiple users that have write access and push at the same time, this can result in race conditions and corrupted repositories. So only use this for a personal repository, or when the others only have read access.
Re:How to use Dropbox as a git server?
by mbreese on Thursday February 17, 2011 @09:14AM
(#2230948)
Not only that, but you could have multiple users to begin with. Since all files are synced on save, two people couldn't be working at the same time. Well, I guess they could, but good luck editing the same file. Or even trying to commit. You could easily overwrite the other persons files without knowing it.
Re:How to use Dropbox as a git server?
by almost on Thursday February 17, 2011 @09:52AM
(#2231091)
Article could be summarized to one sentence "Put your git repo in your Dropbox". It does also go on to suggest that you share this folder with other Dropbox users but that's a bad idea. Even single users can end up with problems if they use multiple machines, git doesn't understand Dropbox's method of dealing with conflicts.
Re:How to use Dropbox as a git server?
by agnoster on Thursday February 17, 2011 @10:25AM
(#2231203)
Yeah, I think people may be overthinking this, although there's something to be said for "two great tastes that taste great together". It's kind of silly, but I actually wrote a "git dropbox" command to just stuff a bare repo of what I'm doing in my Dropbox so I don't have to think about it... and I kind of like it. Maybe it's overkill, but if I only have to type one command, it's easy enough I won't think about it :-) (https://github.com/agnoster/git-dropbox/ for what it's worth)
Agreed it's a dangerous idea for collaboration, unless you are the only one pushing to it and everyone else just pulls. That could work as a simple way to make your git repo pull-accessible to others without using a separate service or server (assuming you both have Dropbox already, of course).
Re:How to use Dropbox as a git server?
by wccrawford on Thursday February 17, 2011 @09:04AM
(#2230906)
I think calling it a 'git server' is a bit much. Its only feature is to sync the repo between different computers. As wladimir pointed out, it's not even reliable when you have multiple committers.
Re:How to use Dropbox as a git server?
by joemanaco on Thursday February 17, 2011 @02:02PM
(#2232293)
hmmm.... I've used that together with a friend for quite some time now and we never had problems. I assume we were just lucky. Thank you people, for clearing that up.
And yes, of course you're right, it's not really a server.
Agreed it's a dangerous idea for collaboration, unless you are the only one pushing to it and everyone else just pulls. That could work as a simple way to make your git repo pull-accessible to others without using a separate service or server (assuming you both have Dropbox already, of course).
https://git.wiki.kernel.org/index.php/GitHosting is where I would say people should start if they want to host a .git.
And yes, of course you're right, it's not really a server.