Git Hooks/Show hooksPath

See whether Git uses a non-default hook directory.

Section: Hook Lifecycle Commands

Show hooksPath

bash
bash
git config --show-origin --get core.hooksPath

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 client hooks for one commit
Bypass pre-commit and commit-msg hooks when necessary.
OpenIn sheetbashsame section
Skip pre-push hook
Bypass pre-push hook for one push.
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