git save

I got tired of messing around with scripts and cron jobs that didn’t really work for what I needed. Using text files to keep organized means I just need to commit (and push) on occasion; the information that would go in a commit message isn’t as relevant, since it is writing or updating todo lists.

I finally came up with this:

 git config –global alias.save ‘!git add -A && git commit -m "save"’

Then for any repo that I want to push to a remote repo, I make a post-commit hook. I type git save, and all my changes are committed. Works for me.