Git: add pre-commit and post-rewrite hooks for versioning * Also adds the maintainer-only .private directory