dougoftheabaci
dougoftheabaci

Reputation: 704

How do I keep GIT repositories inside Dropbox?

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.

Upvotes: 3

Views: 1557

Answers (1)

Anshul Goyal
Anshul Goyal

Reputation: 76887

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.

Upvotes: 8

Related Questions