4 ms·
The commit-msg hook. You can use it to validate your project state or commit message before allowing a commit to go through. The git docs demonstrate using this
by jph 10y ago
The commit-msg hook. You can use it to validate your project state or commit message before allowing a commit to go through. The git docs demonstrate using this hook to check that your commit message is conformant to a required pattern.
- wst_ 10y agoIt's not easy to enforce local hooks. And maintaining it becomes difficult if you have a lot of small repos.