You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+4-5
Original file line number
Diff line number
Diff line change
@@ -368,11 +368,10 @@ export NVM_DIR="$HOME/.nvm"
368
368
369
369
## Hooks not running
370
370
371
-
Ensure that you don't have a typo in your filename. For example, `precommit` or `pre-commit.sh` are invalid names. See Git hooks [documentation](https://git-scm.com/docs/githooks) for valid names.
372
-
373
-
Verify hooks permissions, they should be executable. This is automatically set when using `husky add` command but you can run `chmod +x .husky/<hookname>` to fix that.
374
-
375
-
Check that your version of Git is greater than `2.9`.
371
+
1. Ensure that you don't have a typo in your filename. For example, `precommit` or `pre-commit.sh` are invalid names. See Git hooks [documentation](https://git-scm.com/docs/githooks) for valid names.
372
+
1. Check that `git config core.hooksPath` returns `.husky` (or your custom hooks directory).
373
+
1. Verify that hook files are executable. This is automatically set when using `husky add` command but you can run `chmod +x .husky/<hookname>` to fix that.
374
+
1. Check that your version of Git is greater than `2.9`.
0 commit comments