Add pre-commit hooks to git