Adds .claude/scripts/migrate-to-submodules.sh — self-contained, distributable by raw URL since old clones can't pull. Detects compliance (history merge-base vs origin, RECLONE.md+submodule offline fallback); leaves compliant clones untouched; otherwise re-clones AND recovers the gitignored per-machine state a clone never carries (identity.json, settings.local.json, .mcp.json, grepai, per-project .env/.venv/.attachments), surfaces stranded unpushed commits, and FLAGS large purged data for manual move (never re-imports it into git). Closes RECLONE.md's "recover any uncommitted work" gap that stranded identity.json + the discord-bot venv. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
9.9 KiB
9.9 KiB