Search code examples
gitdropbox

Using dropbox and git without conflitcts


I'm working with people using only Dropbox as version control and collaboration tool. I don't intend to change their behavior. On the other hand, I'm a git-addicted, and want to use it for my personal use.

Is their anyway to have a .git directory without syncing it in Dropbox ?

Thanks


Solution

  • According to this thread in the Dropbox forum, you can't omit/exclude folders. There is Selective Sync but that also doesn't what you need.

    So the best solution right now is to sync manually, for example with rsync(1):

    1. Create a new folder somewhere
    2. Sync this folder with the folder in Dropbox using rsync. I suggest to write a script for this.
    3. Add a git repo in this new folder
    4. Use a second rsync script to update the Dropbox folder (use --exclude .git here)