--no-verify
A git commit and git push flag that skips the pre-commit, commit-msg and pre-push hooks.
It silently bypasses every local commit check, so hooks alone cannot enforce a rule.
In more detail
It exists for emergencies, but it means any check in a local hook is optional. That is why rules a team depends on are also enforced in continuous integration, which nobody can skip.
Example
git commit --allow-empty --no-verify -m 'wip again'Related terms
- Git hook — A script Git runs automatically at a point in its workflow, such as pre-commit, which can stop the commit by exiting non-zero.
- continuous integration — Automatically building and testing every change as soon as it is pushed, so problems are caught early.
Taught in
- Conventional Commits — Advanced Git Internals & Distributed Workflows