Skip to content

Instantly share code, notes, and snippets.

@todgru
Created October 5, 2022 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save todgru/5eefe404d0f725f9a75daa25fba70307 to your computer and use it in GitHub Desktop.
Save todgru/5eefe404d0f725f9a75daa25fba70307 to your computer and use it in GitHub Desktop.
husky missing git hooks not firing pre-commit

Upgrading from husky 3.1.0 to 8x will remove the older style of hooks and set a git config value for hooks. To move back to husky 3x, unset the git core.hookspath=.husky value.

list hooks in git config:

$ git config -l |grep hook
core.hookspath=.husky

Unset core.hookspath:

git config --unset core.hookspath
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment