Refactor git commands and reversion.
Add advice to read-only-mode.
Fixed some syntax errors.
Fix argument passing to git function.
Make git-annex-add-file take an argument.
Check that there's something to commit before trying.