Git: add pre-commit and post-rewrite hooks for versioning

* Also adds the maintainer-only .private directory
4 files changed