Bitbucket to GitHub migration
I wrote the live sync plan for moving around 500 repositories from Bitbucket to GitHub while delivery carried on. Pipelines and tooling moved first and developers followed once their repositories were ready, each changing their git remote once.
Every repository moved on a phased cutover, with teams shipping the whole time.
- ~500repositories moved to GitHub
The company had been on Bitbucket for 10+ years and it had repeated outages lasting hours.
Plan
- Mirror every repository from Bitbucket to GitHub, continuously.
- Switch the tooling. CI and the other tools read from GitHub while developers still push to Bitbucket.
- Move developers in waves. Each developer changes their git remote once.
- Shut Bitbucket down.
Follow-up
- Tracked down pull requests that no longer linked to Jira.
- Tracked down Bitbucket addresses hard-coded in Renovate and the agent image build.
- Tracked down a metrics collector that under-counted cycle time.