1. pre-push: This hook is invoked before a push to a remote repository is initiated. It can be used to validate the changes being pushed. If it exits non-zero, the push is aborted.
2. update: This server-side hook is executed before any ref is updated on a remote repository. It’s used for access control and validation.
3. post-update: This server-side hook runs after the refs have been updated. It can be used for notifications or synchronization tasks.
4. post-receive: This server-side hook is invoked after a successful push operation. It can be used for further processing like deploying changes.
• Description: Run during git push, after remote refs have been updated but before objects have been transferred.
• $1: Name of the remote being pushed to.
• $2: URL to which the push is being done.
Add support for
Note
pre-push: