CommandsHooks
hooks uninstall
Remove managed RAGit git hooks safely
What It Does
hooks uninstall removes only hooks that were installed and marked as managed by RAGit. External hooks are left untouched and reported as external.
When To Use / When Not To Use
When to use it
- You no longer want automatic ingest hooks.
- You need to verify whether managed hooks can be removed safely.
When not to use it
- You only want hook visibility. Use
hooks status. - You want to install hooks instead. Use
hooks install.
Syntax
pnpm ragit hooks uninstall [--dry-run] [--format text|json|both] [--cwd <path>]
Arguments And Options
--dry-run: Preview which managed hooks would be removed.--format text|json|both: Choose text, JSON, or both.--cwd <path>: Run against another repository.
Input And Output Contract
- Input is flag-based only.
- JSON output includes
dryRun,root, andhooks. --dry-runis the safe mode to confirm that external hooks will not be removed.
Examples
Human terminal flow:
pnpm ragit hooks uninstall --dry-run
Agent-oriented flow:
pnpm ragit hooks uninstall --dry-run --format json
Failures And Cautions
- Hooks not marked with the RAGit header are treated as external and preserved.
- Review the
statefield before a real uninstall if the repository already had custom hooks.