|
| 1 | +# GitLab → GitHub Migration Strategy |
| 2 | + |
| 3 | +## Goal |
| 4 | +**GitHub is the single source of truth.** All development happens on GitHub, then mirrors out to: |
| 5 | +- GitLab (gitlab.com/maa-framework) |
| 6 | +- Codeberg |
| 7 | +- Bitbucket |
| 8 | + |
| 9 | +## Current Problem |
| 10 | +- Original work (Aug-Oct 2025) lives on GitLab |
| 11 | +- GitHub repos created Dec 2025, some with parallel Claude implementations |
| 12 | +- Result: diverged repos, missing content, confusion |
| 13 | + |
| 14 | +## The Fix (4 Phases) |
| 15 | + |
| 16 | +### Phase 1: Language Repos (This Week) |
| 17 | +Priority repos - the 8 languages in this ecosystem: |
| 18 | + |
| 19 | +| Repo | GitLab Status | GitHub Status | Action | |
| 20 | +|------|---------------|---------------|--------| |
| 21 | +| eclexia | 13 commits, 70-page white paper, Rust compiler | 1 commit (template) | **SYNC FROM GITLAB** | |
| 22 | +| phronesis | 11+ commits, original design | Claude Elixir impl | Evaluate both, merge best | |
| 23 | +| wokelang | 20+ commits, original design | Claude Rust impl | Evaluate both, merge best | |
| 24 | +| oblibeny | 40+ commits | 30 commits, diverged | Manual merge | |
| 25 | +| anvomidav | Mislabeled as "betlang" | Correct name | Sync + rename on GitLab | |
| 26 | +| betlang | Correct | Correct | Verify sync | |
| 27 | +| julia-the-viper | Original | Check status | Sync if needed | |
| 28 | +| my-lang (solo/duet/ensemble) | Original | Check status | Sync if needed | |
| 29 | + |
| 30 | +### Phase 2: Full Audit |
| 31 | +Run reconciliation script to categorize all 400+ repos: |
| 32 | +```bash |
| 33 | +export GITLAB_TOKEN="glpat-..." |
| 34 | +export GITHUB_TOKEN="ghp_..." |
| 35 | +python scripts/repo-reconcile.py > audit-results.json |
| 36 | +``` |
| 37 | + |
| 38 | +Categories: |
| 39 | +- **gitlab-only**: Create on GitHub, sync content |
| 40 | +- **github-only**: Keep (new work) or archive (abandoned) |
| 41 | +- **synced**: Set up mirror |
| 42 | +- **diverged**: Manual review needed |
| 43 | + |
| 44 | +### Phase 3: Consolidate |
| 45 | +For each diverged repo: |
| 46 | +1. Compare commits on both sides |
| 47 | +2. If GitLab has original work + GitHub has useful additions → merge |
| 48 | +3. If GitHub work is just parallel implementation → replace with GitLab |
| 49 | +4. If GitHub work is better → keep GitHub, archive GitLab |
| 50 | + |
| 51 | +### Phase 4: Mirror Setup |
| 52 | +Once GitHub is authoritative: |
| 53 | +``` |
| 54 | +GitHub (source) |
| 55 | + ├── → GitLab (push mirror) |
| 56 | + ├── → Codeberg (push mirror) |
| 57 | + └── → Bitbucket (push mirror) |
| 58 | +``` |
| 59 | + |
| 60 | +GitHub Settings → Branches → Add mirror for each target. |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +## Instructions for Claude Sessions |
| 65 | + |
| 66 | +**READ THIS BEFORE WORKING ON ANY REPO IN THIS ECOSYSTEM** |
| 67 | + |
| 68 | +1. **GitHub is source of truth** - always pull from GitHub first |
| 69 | +2. **Check this document** for repo status before making changes |
| 70 | +3. **Never create parallel implementations** - if GitLab has content, sync it first |
| 71 | +4. **Update MIGRATION-STATUS.md** after completing any sync operation |
| 72 | +5. **Preserve original work** - GitLab content represents months of human effort |
| 73 | + |
| 74 | +## Immediate Priority |
| 75 | +**Sync eclexia first** - it has a 70-page white paper and Rust compiler that only exists on GitLab. |
| 76 | + |
| 77 | +```bash |
| 78 | +# Preserve GitLab work to GitHub |
| 79 | +git clone git@gitlab.com:maa-framework/4a-languages/eclexia.git |
| 80 | +cd eclexia |
| 81 | +git remote add github git@github.com:hyperpolymath/eclexia.git |
| 82 | +git push github main --force |
| 83 | +``` |
0 commit comments