Process Flow - commit-msg hook for message validation
Start commit-msg hook
Read commit message file
Validate message format
Allow commit
Show error message
Exit hook
The commit-msg hook runs automatically during commit. It reads the commit message, checks if it matches rules, then allows or rejects the commit.