GeezerVison is showing github.com — Command for removing git hooks · Issue #2219 · voidzero-dev/vite-plus
Command for removing git hooks #2219
Description
Description
Right now, we don't have a way to remove git hooks once set up and people have to go through steps
Suggested solution
A command to remove them.
Alternative
Manually following the docs
Additional context
No response
Validations
- Read the Contributing Guidelines.
- Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
- Check that there isn't already an issue requesting the same feature.
Reacted by JongKyung Lee and Liang
Activity
dennybiasiolli commented on Aug 4, 2026
Hey @TheAlexLichter 😄
I can try and help with this, what do you think about something like this?
vp config --uninstall-hooks
vp config --uninstall-hooks --hooks-dir .custom-hooks
Acting like this:
vp config --uninstall-hooks unsets core.hooksPath only when it points at the Vite+ dispatcher and removes <hooks-dir>/_. Leaves .vite-hooks/pre-commit, staged config, and package.json scripts alone (same as the manual steps in the guide after #2218).
| Flag |
Behavior |
--uninstall-hooks |
Run uninstall and exit (no install, no agent update). |
--hooks-dir <path> |
Same default and rules as install (default .vite-hooks). |
Combined with --no-hooks |
Error: contradictory. |
Reacted by Alexander Lichter
TheAlexLichter commented on Aug 4, 2026
Hey @dennybiasiolli 👋🏻
Nice to see you around here 😋
I am not a big fan of an argument to uninstall hooks and given we add more "features" to hooks it is time to add own command IMO. Maybe sth like:
- vp hooks install [--hooks-dir .custom-hooks]
- vp hooks disable
- vp hooks enable
- vp hooks status
We should also persist the decision of the user.
cc @fengmk2 wdyt
fengmk2 commented on Aug 5, 2026
Agree with vp hooks sub command, and I think vp hooks setup is better then vp hooks install, others look good.
Reacted by JongKyung Lee and Alexander Lichter
Metadata
Metadata
Development
No branches or pull requestsIssue actions