build(git): .githooks补一个 commit-msg + commitlint

This commit is contained in:
sophie committed 2026-06-08 14:07:40 +08:00
1 parent c7f25ec8a1
commit 6057069c1c
9 files changed
+157 -12

No files matched your search

+1 -1
View File
@@ -83,7 +83,7 @@ cd hxops
git config core.hooksPath .githooks
```
验证:`git config --get core.hooksPath` → `.githooks`;前置:`cd frontend && npm install`。
验证:`git config --get core.hooksPath` → `.githooks`;前置:`cd frontend && npm install`,以及仓库根目录 `npm install`(安装 commitlint;运行 `./scripts/install_git_hooks.sh` 时会自动执行)。
### 4.3 常用 Git 操作示例