doctor¶
Diagnose common workspace configuration issues.
Usage¶
Description¶
multi doctor checks for common setup problems and prints actionable guidance.
Use --fix to automatically remove tracked sub-repo directories from the root git
index in standard mode (monoRepo: false) using git rm -r --cached (files remain
on disk).
Checks¶
multi.jsoncan be discovered from the current directory.multi.jsonis valid JSON and can be parsed.- Root workspace git repo exists.
- Standard mode (
monoRepo: false) consistency: - warns if sub-repos are tracked in the root git index.
- warns if sub-repos are configured as git submodules.
monoRepomode consistency:- warns if configured repo directories contain nested
.gitfolders.
Strict Mode¶
By default, warnings do not fail the command. Use strict mode to fail on warnings:
Fix Mode¶
Apply safe fixes for tracked sub-repos:
Notes¶
- In
monoRepomode, listed directories should be part of the root git repo. - If you have independent nested git repositories, use standard multi-repo mode (
monoRepo: false).