Issue
Suddenly I am getting the "husky > pre-commit hook failed (add --no-verify to bypass)" error message when I give the git commit
.
I don't know what I am doing wrong. I tried git clean
command too. Anyone faced similar issue?
Solution
Husky can prevent you from bad git commit
, git push
and more. If you are getting this error check your code syntax. In case you are getting this error even if your code is valid, please use the below solution.
#Solution 1:
Delete the .git/hooks
folder and then do the npm install
for reinstall husky. There are chances for conflicts with husky-generated files and .git/hooks/ files
.
#Solution 2:
this is a temporary/quick solution.
git commit -m "message" --no-verify
Answered By - Sathiamoorthy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.