Closed ahmedelq closed 3 weeks ago
Commands should be put in .husky/commit-msg
what is _ folder then where can I read about it ?
It's a directory owned by husky to put necessary files for it to work. Consider it like node_modules. In any case, files inside shouldn't be edited.
Troubleshoot
Context Please describe your issue and provide some context:
Ubuntu 22.04
,Bash 5.1.16
,git version 2.34.1
,husky: 9.0.11
git config core.hooksPath
gives:.husky/_
Steps to reproduce
.husky/_/commit-msg
with the below:git commit -m "testing"
Expected behavior: fail the git commit.
Thank you!