Interview Prep/Git & GitHub/Governance, migration, automation and cost

How do you migrate 200 repos from Bitbucket or GitLab to GitHub with minimal disruption?

IntermediateProductionGovernance, migration, automation and cost
Answer

Inventory repos and owners, pick a pilot team, then migrate in waves using GitHub Enterprise Importer (gh gei) or git clone --mirror plus API for metadata. Recreate CI (Jenkinsfile or .gitlab-ci.yml to Actions via gh actions-importer), rotate and re-add secrets, update webhooks and deploy keys, set rulesets, then make the old repos read-only with a pointer. Run old and new CI in parallel for one release cycle.

gh gei migrate-repo --github-source-org SRC --source-repo app \
  --github-target-org DEST --target-repo app
All Git & GitHub questions Roadmap: Git & GitHub

More on Governance, migration, automation and cost