提交commit -m 不通过,报错→ No partiall
2019-11-19 本文已影响0人
楠楠_c811
代码提交commit -m 不通过,报错
→ No partially staged files found...
Running tasks... [started]
Running tasks for **/*.less [started]
Running tasks for **/*.{js,jsx,tsx,ts,less,md,json} [started]
Running tasks for **/*.{js,jsx} [started]
Running tasks for **/*.{js,ts,tsx} [started]
Running tasks for **/*.less [skipped]
根本原因是hooks检查不通过,因为代码风格不符合规范。
解决办法:
切换 commit 命令为
git commit -m "left" --no-verify
目的是跳过hooks校验直接提交,继续运行应该就可以正常提交了。