Git hooks are scripts that are executed upon certain git events. Events include, but are not limited to, pre- and post-commit and pre- and post-rebase on the client-side, and post-receive-commit on the server-side. No need to use the tag Hooks when using the tag Githooks. Maybe used in combination with tag Webhooks
What is it ?
Git hooks are scripts that are executed upon certain git events. Events include, but are not limited to, pre- and post-commit and pre- and post-rebase on the client-side, and post-receive-commit on the server-side.Hooks can be written in most any scriptable language, including ruby, perl, bash, and shell.
Related tags
- Githooks are prohibited on most commercial Git services like GitHub, BitBucket or GitLab, for security reason. These propose webhooks which are only able to send a JSON payload to an url (like a push).
- Use hooking for other hooking mechanisms in the source management or build process that do not rely on git hooks.
- Use github-webhook for webhooks used on Github as alternative to githooks.