3

So I've seen similar questions asked before, but I'm not thinking about pushing/pulling from a repo on Git's servers, this is just as a place to keep the repo locally on my machines. I'd still push/pull to GitHub.

I know it can technically live wherever I want it to, but can anyone think of a reason this might end badly?

I use Dropbox on a Mac, Windows system and a Linux server, if that makes a difference.

dougoftheabaci
  • 665
  • 1
  • 6
  • 19

1 Answers1

8

Saving a git repository on DropBox etc is not a good idea, and in general, you should try to avoid having a live repository(one whose contents can change frequently) on dropbox. This is because the files within DropBox are synced to the DropBox servers, and can frequently result in corruption of local blobs, which in the worst case can make your repository unusable. For example, check :

Since you are already pushing to github, just clone the repository when you need it the next time.

Community
  • 1
  • 1
Anshul Goyal
  • 73,278
  • 37
  • 149
  • 186
  • 1
    I had a feeling this was going to be the case. Oh well, now I know. Thanks! – dougoftheabaci May 02 '15 at 17:38
  • I want to second this. I didn't have the corruption issue until one of my machines turned to macos and the rest are linux. Now I immediately get corruption after the pushes from macos on all the rest of linux copies of my dropbox directory. not sure why. – M.Rez Jun 14 '21 at 12:20