Git Hooks/Skip client hooks for one commit

Bypass pre-commit and commit-msg hooks when necessary.

Section: Hook Lifecycle Commands

Skip client hooks for one commit

bash
bash
git commit --no-verify -m "Emergency commit"

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Hook Lifecycle Commands
Skip pre-push hook
Bypass pre-push hook for one push.
OpenIn sheetbashsame section
Show hooksPath
See whether Git uses a non-default hook directory.
OpenIn sheetbashsame section
Debug shell hook with xtrace
Trace shell execution for debugging.
OpenIn sheetshsame section
Pre-commit hook path
Default path for pre-commit hook script.
OpenIn sheetsh1 tag match
Pre-commit lint script
Run linting before commit and fail on error.
OpenIn sheetsh1 tag match
Commit-msg hook path
Default path for commit-msg hook script.
OpenIn sheetsh1 tag match