Simple Git Hooks

Git hooks are an easy way to have scripts execute based on specific events. Since this is just a simple introductory, we’ll only concern ourselves with a few hooks. Your scripts can do anything you imagine, just keep in mind that only a non-zero return status will stop the Git procedure from continuing. pre-commit Called before your commit is written. pre-receive Called before your push is accepted. post-commit Called after your commit is written....

July 19, 2019 · 3 min · Greg Hilston