doctor
Run a health check on your git shadow installation and the current repository. Useful after initial setup or when something doesnβt seem to be working.
Usage
git shadow doctor
What it checks
- All required toolkit files are present (
commands/feature/start.sh,commands/feature/publish.sh,commands/feature/finish.sh,commands/commit.sh,commands/install-hooks.sh, and core scripts) config/defaults.envis valid and contains the required keysgitis available in your PATHgit shadowCLI is reachable (PATH or alias configured)- Current repository status (clean working tree, staged files, current branch)
Example output
A healthy installation looks like:
π git-shadow doctor check
β
Toolkit files present
β
Configuration template valid
β
git CLI available
β
git-shadow CLI available
β οΈ git shadow alias not set (optional)
π Checking project path: .
β
Inside Git repository: true
π Current branch: feature/login@local
β
Working tree clean
β
No staged changes
π git-shadow doctor completed
If something is wrong:
β git-shadow not in PATH (usage: export PATH="~/.local/share/git-shadow/bin:$PATH")
When to run it
- Right after installation β verify everything is wired correctly
- When a command fails unexpectedly β rule out configuration issues
- When onboarding a new machine or environment
Related
- Getting Started β full installation walkthrough
- install-hooks β install the pre-commit and pre-push hooks