Should I keep my Git folder outside Dropbox?

In fact, if you are using GitHub or another public Git hosting service, you should not put your Git repository in Dropbox at all. It makes almost no sense (to me, at least) since with GitHub you can already access your code anywhere, as long as you have internet access.

The situation is totally different in your link, which considers that Git on Dropbox is a great idea. Since he uses only Git without a public Git server, he just uses Dropbox as a central git repository which acts as something similar to GitHub.

Think twice about the differences between using Git and using Github and the purpose of using Github and Dropbox together.

As to your question, Yes, you should keep your .git folder outside the Dropbox, as Leon suggested. Besides the reason he gives, which is the most important, there is another reason: the .git folder can grow quite large and might occupy a significant amount of your Dropbox's total space.

Meanwhile, moving your Git repository completely outside of your Dropbox is strongly recommended.


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.