Prerequisite: the MergeGuide CLI, installed and authenticated.
Install
pre-commit, pre-push, commit-msg, post-commit,
and all.
Check status
Fleet install
To install hooks across every git repository under a directory:--dry-run reports what would happen without writing anything. Drop it to apply.
Use --max-depth to bound how deep the repo discovery recurses (default 5).
What happens on commit
When you commit, the hook runs MergeGuide against your staged changes:- If there are no blocking findings, the commit proceeds.
- If there are blocking findings, the commit is stopped and the findings are printed so you can fix them.
Remove the hooks
Next steps
Set up the PR gate
Enforce policy on pull requests across your SCM.
Configuration
Tune which policies run and your fail thresholds.