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 提交时报错 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.

找到项目里的 package.json 文件,找到 "husky",把里面提交前检查的部分删除。
`pre-commit`

image

posted @ 2024-05-09 15:29  东八区  阅读(91)  评论(0编辑  收藏  举报