公司动态

`githooks` 让 Git 找不到 hook**(你手动 `./githooks/commit-msg` 能跑,但 `git commit` 未必用同一个目录)。

📅 2026/7/23 0:26:42
`githooks` 让 Git 找不到 hook**(你手动 `./githooks/commit-msg` 能跑,但 `git commit` 未必用同一个目录)。
全局改成绝对目录和「真正共用一套 hook」一致mkdir -p /home/username/githookscp ~/work/githooks/commit-msg /home/username/githooks/chmod x /home/username/githooks/commit-msggit config --global core.hooksPath /home/username/githooks