git_hooks
Manage Git hooks in local repositories by listing, creating, enabling, or disabling hooks such as pre-commit or post-merge to automate and enforce workflows.
Instructions
Manage git hooks in the repository.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
action | Yes | Hook action (list, get, create, enable, disable) | list |
hook_name | No | Name of the hook (e.g., 'pre-commit', 'post-merge') | |
repo_path | Yes | The path to the local Git repository | |
script | No | Script content for the hook (for create action) |