Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Should I keep my Git folder outside Dropbox?

So far I've managed my code by keeping it inside my Dropbox folder and nothing more. Lately my code has been growing in size and complexity and I'm wondering if it wouldn't be better to set up a GitHub or Bitbucket account to manage it more efficiently.

I know there are already dozens of questions here regarding all kinds of mixes between Git and Dropbox; this is precisely what got me confused. Some say it's a great idea while others say it's a terrible idea.

I just want to know: if I decide to set up a git repository, using either GitHub or Bitbucket, should I move my .git folder outside of my Dropbox folder?

like image 419
Gabriel Avatar asked Sep 15 '13 22:09

Gabriel


People also ask

Does Git work with Dropbox?

Because git-remote-dropbox uses an on-disk format that's compatible with Git, accessing your repository without using the helper is easy: Download the repository data (a directory containing the objects and refs directories) from Dropbox. Make a new directory and initialize an empty Git repository in the directory.

Can you link GitHub to Dropbox?

Dropbox + GitLab IntegrationsZapier lets you send info between Dropbox and GitLab automatically—no code required. Triggers when a new file is added to a folder. Make sure the number of files/folders in the watched folder does not exceed 4000.


1 Answers

Yes, it is important to keep your Git folder outside of Dropbox.

Dropbox can sometimes get confused and create a lot of duplicates of your files, such as filename~(conflict), which can really mess up your Git repository and require time to clean up.

like image 154
ljs.dev Avatar answered Sep 21 '22 20:09

ljs.dev