✏️ 编辑:pre-merge-commit.sample
路径:
/usr/share/git-core/templates/hooks/pre-merge-commit.sample
大小:420 B · 修改:2026-04-05 06:37:52 · 权限:0755 · 只读(保存会失败)
← 返回目录
👁 查看
⬇ 下载
#!/usr/bin/sh # # An example hook script to verify what is about to be committed. # Called by "git merge" with no arguments. The hook should # exit with non-zero status after issuing an appropriate message to # stderr if it wants to stop the merge commit. # # To enable this hook, rename this file to "pre-merge-commit". . git-sh-setup test -x "$GIT_DIR/hooks/pre-commit" && exec "$GIT_DIR/hooks/pre-commit" :
💾 保存
取消
保存为 UTF-8,换行统一为 LF