problem description: I want to combine my dropbox folder with my github repository for project management. The challenge is that

  • I already had worked on this project in dropbox for like 1 year and had used git locally
  • I worked sometimes on my office Win PC, and sometimes on my personal Macbook

I want a solution that allows the following:

  1. my github repository will serve as a remote hub to managing the code/data/results
  2. I can continue working between Win PC and macbook
    • I can pull from or push to the remote respository

challenges in 2

  • if through dropbox all codes/data/results can by synced except *.git
    • good for dropbox storage space
    • bad for git consistency, as
      • when I make a pull from PC1, the operated objs will be synced aumatically through dropbox anyway on PC2, but the *.git on PC2 are not updated and will results in lags/forwards comapred with the remote hub
      • similar issues exist for a push request
  • if through dropbox all codes/data/results as well as *.git are also synced
    • dropbox and git hate each other!

solution

  • Win PC drobpox allows for git and connect with github, but exclude git from sync
  • macbook dropbox exlude git, only sync file changes (extra back-up)
  • an extra macbook local repository for working

reference

  • https://help.dropbox.com/files-folders/restore-delete/ignored-files