我正在寻找一个git钩子,它在Python代码中查找print语句.如果找到print语句,则会阻止git commit.
我想覆盖这个钩子,我被告知有一个命令可以这样做.我找不到它.有什么想法吗?
git githooks git-commit
我的git钩子似乎不起作用。即commit-msg来自gerrit 的钩子。
commit-msg
该commit-msg钩存在<repo>/.git/hooks/并具有正确的语法。
<repo>/.git/hooks/
git githooks gerrit
git ×2
githooks ×2
gerrit ×1
git-commit ×1