提交失败是因为项目文件中的.git->hooks->pre-commit对error进行了检验处理,commit的时候显示error太多。 解决方式:进去.git->hooks 把hooks文件夹内容全部删除 这就commit成功啦!