Git Hooks Automation

当需要在提交/推送前自动拦截代码质量问题(lint、格式化、类型检查、提交信息规范、密钥/大文件检测)时使用;用 Husky+lint-staged、pre-commit 框架或 core.hooksPath 搭建团队共享 Git 钩子并产出可执行配置;不适用于 CI 流水线编排或替代真实测试评审。触发词:git hooks、pre-commit、husky、lint-staged、commitlint、commit-msg、pre-push

findscripter fc671e0 5.8 KB Updated

File contents

findscripter/everything-skills/tree/main/02-engineering/git-hooks-automation commit fc671e058e

Frequently asked questions

npx skillmds@latest add findscripter/git-hooks-automation