Some of your tasks use git add command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index
其实这是这个提交git规范检查,查看vue的配置文件json,看看有没有这个东西
"pre-commit": [
"lint:staged"
],
"lint-staged": {
"*.js": [
"vue-cli-service lint",
"git add"
],
"*.vue": [
"vue-cli-service lint",
"git add"
]
},
注释掉就可以了