Recovery
Recovery paths: lost .env, wrong profile, stale example
How to restore a repo to known-good config state.
Step-by-step
- Archive current state to .env.bak.
- Delete data/index.db if corrupted.
- Copy .env.example; refill required secrets.
- Run envdoctor check; every issue should cite exact source path.
- Commit restored example; notify team.
When env changed without git
Diff against .env.example; roll forward only intentional changes; never silently merge.