git报错husky > pre-commit hook failed (add --no-verify to bypass)

git commit code to GitHub error:

husky > pre-commit hook failed (add --no-verify to bypass)

solve:

1, into the project folder /.git/hooks folder

2, delete pre-commit file

 

problem analysis:

pre-commit (client) hook, it will type in the information submitted before running Git code style checking to do.
If the code does not comply with the appropriate rules, error.

 

Reference: https://www.cnblogs.com/soyxiaobi/p/9679092.html

Guess you like

Origin www.cnblogs.com/jasonzhang-blog/p/11298580.html