For the encrypted git repo, I use this:
https://github.com/AGWA/git-crypt
The cron points to a shell script:
#!/bin/sh
cd ~/notes
git add -A .
git commit -am wip
git pull
git push
So with that, I have the same directory, ~/notes/ syncd on all of my computers automatically, as long as I don't do conflicting edits within the space of a minute, which has never happened.