Configuring pre-receive hooks in GitHub Enterprise
After you create a pre-receive hook in GitHub Enterprise, you need to configure it.
About this task
Pre-receive hooks in GitHub can be enforced at the GitHub organization level or in each GitHub repository. The following steps assume that the pre-receive hooks are enforced for a GitHub repository.
- In a web browser, open the GitHub repository.
- Click the Settings tab.
- In the navigation pane, click Hooks.
- In the Pre-receive hooks section, find your hook, then click Enable.