You don't have the possibility of corrupting your repo with an unsynced commit from a differennt machine.
You don't have the possibility of corrupting your repo with an unsynced commit from a differennt machine.
I've used dropbox+git for sometime [1]. It throws "conflicted copy" error [2] when two people push to origin at the same time. Bitbucket much better than dropbox, but not as awesome as github.
[1] Shorter version - http://stackoverflow.com/a/1961515/45582
[2] http://shikii.net/blog/ignoring-funny-ref-error-on-git-dropb...
See the birthday problem: http://en.wikipedia.org/wiki/Birthday_problem
Git uses other files for tracking things, for example: .git/refs/* and .git/HEAD, which point to particular objects (via SHA-1 hashes). If one of these has a "confilicted change" (via dropbox), one person has the HEAD of the repo (or some other branch) pointing to a commit they do not expect it to point to. Even more interesting is when one person wins HEAD and the other wins it's paired branch in .git/refs/ .
Further, git does occasional packing of the object repository. 2 People attempting to pack the object repository when it contains different items might produce interesting results.