Is it possible to host a bare Git repository using Dropbox, to share code?

后端 未结 8 887
借酒劲吻你
借酒劲吻你 2020-11-27 16:56

I realize that there are similar questions, but my question is slightly different: I\'m wondering whether sharing a bare repository via a synchronized Dropbox folde

相关标签:
8条回答
  • 2020-11-27 17:52

    I used to do this with MobileMe, but the computers kept getting out of sync. Each computer would have a repo that was different than the one in the cloud and since there's no concept of "merge" in MobileMe (and I assume, DropBox, too, right?) I'd end up just having to either pick a version to keep and lose some edits, or copy the edits out and re-apply them. Life has gotten a whole lot easier since I switched to a central Git repo.

    If it's working for you so far, good. I imagine you're going to have a lot of pain if two devs push to their local bare repos at the same time, though. How's DropBox going to know which is right?

    0 讨论(0)
  • 2020-11-27 17:53

    I've had problems using Dropbox with Git and with Mercurial. Repository files often get corrupted, presumably due to Dropbox's synching not being perfect, particularly when changes are being made from multiple places. Also, Dropbox works in the background, so it is really easy to accidentally try to use the repository (or reboot your machine) while it is in the middle of a sync operation.

    I love Dropbox, but it is not a good replacement for a shared drive or a "real" remote Git repository.

    0 讨论(0)
提交回复
热议问题