example-typescript-package icon indicating copy to clipboard operation
example-typescript-package copied to clipboard

Can't commit with Husky installed

Open ghost opened this issue 3 years ago • 2 comments

For some reason it would run my tests and everything would succeed, but the commit wouldn't happen. This is with a copy of the repository after I removed the .git directory and did 'git init' and committed an initial commit, then installed packages.

ghost avatar Apr 13 '22 21:04 ghost

I removed the .husky directory and I could commit again.

ghost avatar Apr 14 '22 14:04 ghost

You likely need to give .husky/* the proper permissions.

chmod +x .husky/*

Like this

doughlass avatar Nov 19 '22 18:11 doughlass