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

  1. 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)
  2. config/defaults.env is valid and contains the required keys
  3. git is available in your PATH
  4. git shadow CLI is reachable (PATH or alias configured)
  5. 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