美文网首页
提交commit -m 不通过,报错→ No partiall

提交commit -m 不通过,报错→ No partiall

作者: 楠楠_c811 | 来源:发表于2019-11-19 16:31 被阅读0次

    代码提交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校验直接提交,继续运行应该就可以正常提交了。

    相关文章

      网友评论

          本文标题:提交commit -m 不通过,报错→ No partiall

          本文链接:https://www.haomeiwen.com/subject/pvqgictx.html