I'm using dropbox for random text notes (org-mode) and dot files that I bootstrap, namely
- part of my bash initialization
- emacs configuration
- vim configuration
Org-mode documentation suggests some backup in case of a mistake in editing folded sections. Makes sense. I also want backups in case I want to back out configuration change.
There are tons of postings on why using git can break in dropbox.
I see a few options:
Not use dropbox and use bitbucket to host the files on git. The disadvantage is that when I switch machines, I have to remember to pull any changes, which is not convenient.
I can use git via a chron job on one of my machines to backup the files in the dropbox folder and make sure that the git directory is not sync'd by dropbox. The disadvantage would be that this is a little asymetrical in that one machine has git on the dropbox files . However, the history is just for backup purposes rather than collaboration purposes.
Not worry about the dropbox issues, as I infrequently commit changes and hardly do any other commands with the git repositories.
Maybe a combination of #1 and #2. Occasionally push my changes to remote, having the .git directory not sync'd.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…