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
More on Governance, migration, automation and cost
What does a migration from SVN (or a legacy monolith repo) to Git need beyond the conversion?AdvancedWhat standard files should every repo have?BeginnerHow do you manage GitHub organisation settings as code?IntermediateWhat is InnerSource and how does Git workflow support it?IntermediateWhen do you use DCO versus CLA?BeginnerWhat is your repo lifecycle policy?Beginner