Update existing Git hooks configuration without full re-setup.
Updates existing Git hooks configuration with new settings and regenerates hook files.
/plugin marketplace add bacchus-labs/wrangler/plugin install bacchus-labs-wrangler@bacchus-labs/wranglerUpdate existing Git hooks configuration without full re-setup.
This command helps you modify your existing Git hooks configuration. It reads current settings, allows you to change specific values, and regenerates the hook files.
Git hooks must already be set up. If you haven't set up hooks yet, use /wrangler:setup-git-hooks instead.
.wrangler/hooks-config.jsonSimply run the command:
/wrangler:update-git-hooks
Follow the prompts to select what to update and provide new values.
| Setting | Description |
|---|---|
| Test commands | Full test suite, unit tests |
| Format/lint commands | Code formatting and linting |
| Protected branches | Branches requiring full tests before push |
| Commit message validation | Enable/disable, change pattern |
| Docs-only patterns | Files that skip tests when only docs change |
/wrangler:update-git-hooks
Current: npm test
New: npm run test:ci
/wrangler:update-git-hooks
Current: main, master
New: main, master, develop, release/*
/wrangler:update-git-hooks
Enable commit message validation? Yes
If something goes wrong, restore from backup:
cp .wrangler/hooks-config.json.backup .wrangler/hooks-config.json
Then run /wrangler:update-git-hooks to regenerate hooks.
/wrangler:setup-git-hooks - Initial hook setup/wrangler:initialize-governance - Full governance setup (includes hooks option)This command delegates to the update-git-hooks skill.
Invoke Skill: update-git-hooks