typicode / husky

Git hooks made easy 🐶 woof!
https://typicode.github.io/husky
MIT License
31.68k stars 996 forks source link

Husky problems on pre-commit after install #1418

Open SoyDiego opened 1 month ago

SoyDiego commented 1 month ago

Hi people, I have some problems tring to use Husky.

My project is like the documentation:

image

When I do this, only is creating a file pre-commit but I cannot see the folder _

image

I'm doing manually npm run prepare and now I can see the folder _

image

Finally I'm trying to do a commit but always I have the same error:

image

What I'm doing wrong. I'm trying in Linux, Mac and Windows and always I have the same problem or sometimes I'm receiving the message .git can't be found.

Windows

In Windows is not generating the folder _ and I received the error .git can't be found. but I don't know how can I do to search the .git in the root folder.

image

Any help? @typicode

Thanks!