-
全局安装 czg,项目中使用 lefthook 配置 pre-commit 添加一些 lint,一般正常来说应该 先检测 lint 通过后才执行 czg,如果检测不成功不则不需要执行 czg,请教一下能否这么配置,之前是在项目中添加 pre-commit-msg 执行 czg 可以,全局 czg 如果配置? |
Beta Was this translation helpful? Give feedback.
Answered by
Zhengqbbb
Jun 26, 2025
Replies: 1 comment 3 replies
-
https://cz-git.qbb.sh/zh/cli/install#%E4%BD%9C%E4%B8%BA-git-hooks-%E4%BD%BF%E7%94%A8
git hooks 本质是在项目中运行 git 命令前后跑脚本类似 |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以明白
prepare-commit-msg
cz-git/package.json
Lines 103 to 106 in 7aef300