Search code examples
gitgithubdropboxbitbucket

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?


Solution

  • 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.