commit to other repository through git prehook code example Example: git hooks chmod +x prepare-commit-msg