在git commit 代码到远程仓库时,出现了上面的错误,我的解决方法为:在项目目录命令行执行下面命令 git  commit --no-verify -m 'xxxxxxxx',其中,‘xxxxx’代表执行git commit 中💥 feat(compiler): add 'comments' option的add 'comments' option,即所提交内容的简要说明。

命令如下:

git  commit --no-verify -m 'xxxxxxxx'

运行结果成功结果如下:

 然后直接push就行。

第二种方法:去掉“run git hooks”前面的勾选。

 

 

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐