git提交代码时报错,提不了

问题

今天在换了新电脑,提交代码时报错
✖ eslint --fix found some errors. Please fix them and try committing again.
✖ 21 problems (20 errors, 1 warning)
husky > pre-commit hook failed (add --no-verify to bypass)
在这里插入图片描述

解决

通过 --no-verify 解决:

git commit --no-verify -m '提交的注释'

猜你喜欢

转载自blog.csdn.net/fangcaojushi/article/details/137469345