How to toggle enable/disable github hooks event
Pre-commit hooks are scripts that run locally before a commit is made.
They are not specific to GitHub but can be part of your local development environment.
Tools like pre-commit
allow you to configure and run hooks before each commit.
enable git hooks
To toggle enable git hooks you can do following:
git config core.hooksPath ./git-hooks
disable git hooks
To toggle disable git hooks you can do following:
git config --unset core.hookspath