git commit --no-verify -m 'skip hooks'

Category: Git - Core

git commit --no-verify -m 'skip hooks'

Commit without running hooks

Bypasses the pre-commit and commit-msg hooks for this one commit, so checks like linters and spellers do not run. Use it sparingly for emergency fixes; the -n shorthand does the same. It does not affect push hooks, which need --no-verify on git push instead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.