No tests found related to files changed since 错误

369 阅读1分钟

问题

提交代码git commit -m '1' 报错No tests found related to files changed since last commit.

原因

这是由于pre-commit 插件的校验

解决

cd .git> ls后会发现有个hooks文件,把此文件删除即可 rm -rf hooks