答案 0 :(得分:0)
The option appears there when git hooks that can be skipped - pre-commit and commit-msg - are added to the repo.
So you need to create hooks in .git/hooks to make it appear.
答案 1 :(得分:0)
那时候我找不到它,但是后来我找到了,所以只想与你们分享。
以下软件包将为您pre-commit
它非常简单,只需安装:
npm install pre-commit --save-dev
并将其添加到package.json
{
"pre-commit": ["test", "build"],
}
你很黄金