我在拉取一个新项目的时候,进行 git commit 的时候就出现了这个问题
然后我现在来说一下我出现这个问题的解决思路
我们点击 “显示命令输出”
我们把第二行的错误 subject may not be empty [subject-empty] 复制搜索一下
这是其他人写的 博客:subject may not be empty [subject-empty] type may not be empty [type-empty] found 2 pro-CSDN博客
接下来就是解决方法:
我们在提交的时候,提交内容价格前缀 git commit "feat: xxxxxxx"
注意 feat: 之后有个空格
关于 feat 的说法
参考博客:git提交类型-CSDN博客