【发布时间】:2015-10-05 20:41:58
【问题描述】:
我在 CentOs 6 服务器上使用 git 1.7.1,当我在 my_repo.git 上运行 git --bare init 时,我检查了 my_repo.git/hooks,我可以看到所有的钩子,包括 post-receive.sample.
现在我在 Centos 7 服务器上使用 git 2.4.1,并且 post-receive.sample 文件丢失,所有其他钩子都在那里,但不是我需要的。
我知道我可以从以前的 repo 复制文件,然后根据需要更改内容,但我想知道为什么没有像以前那样生成 post-receive.sample。
【问题讨论】:
标签: git git-post-receive