pre-commit hook in the root folder that can abort the commit operation code example Example: git hooks chmod +x prepare-commit-msg