--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

Taught in

References