哈士奇 v6 的逃生舱口?
Escape hatch for husky v6?
我最近安装了 husky v6 - 我喜欢它。但有时我想避免 运行 它 - 是否有一些参数可以提供逃生通道?
是的,有。 Git 为 pre-commit
挂钩提供 --no-verify
选项:
This hook is invoked by git-commit[1], and can be bypassed with the --no-verify option. It takes no parameters, and is invoked before obtaining the proposed commit log message and making a commit.
在启用此标志的情况下进行 git 提交会禁用 husky。
我最近安装了 husky v6 - 我喜欢它。但有时我想避免 运行 它 - 是否有一些参数可以提供逃生通道?
是的,有。 Git 为 pre-commit
挂钩提供 --no-verify
选项:
This hook is invoked by git-commit[1], and can be bypassed with the --no-verify option. It takes no parameters, and is invoked before obtaining the proposed commit log message and making a commit.
在启用此标志的情况下进行 git 提交会禁用 husky。