News for hackers. Stuff that matters.
Re:Using git and dropbox together by xpaulbettsx on Thursday February 17, 2011 @12:37AM (#2229919)
That's generally not as likely as you'd think - since the names of the files are hashes of their content, the worst that can happen is you'll get dummy files. Bob's 8331a5b is just as good as Sam's 8331a5b. You could conflict refs (like where 'master' points to), but that window is generally pretty small.
Re:Using git and dropbox together by DTrejo on Thursday February 17, 2011 @12:49AM (#2229937)
That's good to hear, especially since I have a number of my personal repos in my dropbox.
Re:Using git and dropbox together by skybrian on Thursday February 17, 2011 @01:24AM (#2230040)
What about git repack?
Re:Using git and dropbox together by bdonlan on Thursday February 17, 2011 @07:36AM (#2230689)
git repack won't delete any files until it finishes creating a new packfile. You might end up with a window in which the deletions are synced but not the upload of the new pack - this means git operations from other hosts may error out, but there'll be no permanent damage once the sync finishes. Additionally, git won't delete orphaned objects in automatic GCs until a certain time period passes - so no problem with concurrent commits. And if all else fails you can always undelete every file under .git/objects through dropbox :)