Git服务器挂钩

时间:2016-04-21 14:17:48

标签: git hook githooks

如何在向git存储库发送数据时在服务器上运行挂钩? (当我从客户端启动push命令时 - > gt; git push origin master)

到目前为止我所做的步骤:

  • 我在服务器上的hooks文件夹中创建了一个GitServer/GitRepository.git/hooks/post-receive文件(post-receive
  • 我将chmod +x post-receive文件更改为可执行文件(使用post-receive
  • 我手动调试了{{1}}挂钩 - 没问题,并且正确执行手动启动一切

0 个答案:

没有答案