If husky hook is not running, we need to execute command chmod +x .husky/*
. But I need to run chmod +x .husky/*
every time I go to a new branch. Otherwise, it shows this error:
hint: The '.husky/pre-commit' hook was ignored because it's not set as executable.
Can anybody tell me how can I solve this issue?
I am using husky 7.0.1