Git error Git: husky > pre-commit

The reason is the
pre-commit (client-side) hook, which runs before Git enters the commit information to check the code style.
If the code does not meet the corresponding rules, an error will be reported.
Solution

1. 绕过了lint的检查
git commit -m “xxxx” --no-verify

2. 删除 pre-commit 文件
在 .git/hooks 文件夹下

Guess you like

Origin blog.csdn.net/weixin_44953227/article/details/108521110