# Hooks
There are two kinds of hooks against github, one is webhook, the other is hook
+ Webhook: 简单理解为一个被动的通知系统, 类似你做了改动, push 了, github 发送一个提示给你设置了 webhook 的site, 比如说起个 jenkins job
+ hook: 主动型, 比如commit 检测, 空白行检测
### Local Side Hook VS Server Side Hook
local side hook, 不做版本控制, 位于 .git/hook, team 之间 sync 比较tracky
server side hook, 可以 enforce push process, 但是我没权限。。。
**PS**: Hook 功能是只有企业版才有的功能!!!
### Source
+ [Git Hook Guide](https://www.atlassian.com/git/tutorials/git-hooks#server-side-hooks)
+ [Local Side Hook](https://www.youtube.com/watch?v=7sBXEQ1dN4A)
+ [How To Create pre-receive Hooks](https://help.github.com/enterprise/2.13/admin/guides/developer-workflow/managing-pre-receive-hooks-on-the-github-enterprise-appliance/#configure-pre-receive-hooks-for-an-organization)