Moving repositories from Azure DevOps to GitHub is more than copying source code from one platform to another. Development teams need to preserve commit history, branches, tags, pull requests, and repository policies while keeping their existing development processes running.
The biggest challenge is maintaining development activity during the migration. If developers continue pushing commits to Azure DevOps while the repository is being copied to GitHub, the destination can become outdated. A traditional migration may therefore require a temporary development freeze.
However, newer migration capabilities provide a different approach. Enterprise Live Migrations can continuously synchronize repository changes from Azure DevOps to GitHub, allowing developers to continue working in the source repository until the final cutover.
This article explains how to plan a repository migration, use continuous synchronization, prepare developers for the transition, and validate the destination without unnecessarily interrupting development.
Why Repository Migration Can Interrupt Development
Consider an organization with several development teams working on different repositories in Azure DevOps.
The organization decides to move its source code to GitHub to standardize repository management, improve collaboration, and introduce GitHub-based development workflows.
A basic migration might follow this process:
- Create a destination repository in GitHub.
- Copy the source repository and its history.
- Configure branches and repository permissions.
- Ask developers to start using GitHub.
The problem appears when developers continue working during the migration.
For example, assume a repository is copied at 10:00 AM. A developer pushes three commits to Azure DevOps at 10:30 AM. If the migration finishes at 11:00 AM without transferring those commits, GitHub does not contain the latest source code.
The organization now has two different repository states.
This can lead to:
- Missing commits in the destination repository.
- Branches that contain different changes.
- Pull requests that are not available in GitHub.
- Developers pushing changes to the wrong remote.
- Confusion about which repository contains the latest code.
A successful migration must address these problems before changing the system of record.
Understanding Enterprise Live Migrations
Enterprise Live Migrations (ELM) provides a way to move Azure DevOps repositories to GitHub Enterprise Cloud while minimizing disruption.
Unlike a traditional one-time repository migration, ELM performs an initial synchronization and then continues transferring subsequent changes through incremental synchronization.
Developers can continue working in Azure DevOps while the destination repository is being prepared.
The migration operator chooses when to perform the final cutover. At that point, the organization changes its development workflow so GitHub becomes the system of record.
The main stages are:
| Stage | Description |
| Validation | Checks whether the source repository meets migration requirements |
| Initial synchronization | Transfers repository contents and supported metadata |
| Incremental synchronization | Transfers changes made after the initial synchronization |
| Cutover | Switches development activity to GitHub |
| Verification | Confirms that the destination is ready for normal development |
ELM is currently a preview capability and supports migration from Azure DevOps Services to GitHub Enterprise Cloud with data residency. It does not directly support Azure DevOps Server as the source.
For organizations using Azure DevOps Server, the migration path must be evaluated separately.
Preparing Repositories Before Migration
A migration should begin with an inventory rather than immediately copying repositories.
The team needs to understand what exists in Azure DevOps and what must be available in GitHub after the transition.
Important information includes:
- Repository names and sizes.
- Number of branches and tags.
- Commit history and large files.
- Active and completed pull requests.
- Branch policies and permissions.
- Git LFS usage.
- Repository integrations and external references.
- Build pipelines and deployment dependencies.
For example, a repository might contain hundreds of branches, large binary files, and several active pull requests. These details can affect migration preparation and validation.
It is also important to understand the destination organization structure. Decide which GitHub organization will own the repositories, how teams will be created, and which users require access.
A practical inventory can be maintained in a spreadsheet:
| Repository | Source Project | Size | Active PRs | Migration Status |
| CustomerPortal | WebPlatform | 2 GB | 12 | Pending |
| OrderService | Backend | 850 MB | 8 | Pending |
| NotificationService | Backend | 450 MB | 5 | Pending |
| MobileAPI | MobilePlatform | 1.5 GB | 9 | Pending |
This inventory makes it easier to organize repositories into manageable migration batches.
Validating Repository Compatibility
Before starting synchronization, review the repository for conditions that could prevent migration.
Large files, oversized Git objects, and unusually long branch names can cause problems.
For example, Enterprise Live Migrations currently checks several repository limits:
| Validation | Current limit |
| Individual file size in history | 400 MB |
| Push pack size | 2 GB |
| Branch or tag reference name | 255 bytes |
| Validation result freshness | Start migration within 24 hours of successful validation |
Repositories that exceed these limits need cleanup before migration.
Git LFS also requires special attention. ELM does not currently migrate Git LFS objects, even though the repository may contain Git LFS pointers.
The team must plan how to transfer those objects separately rather than assuming that the Git repository migration includes every large file.
Repository validation should also identify sensitive information committed in the past. Moving a repository to another platform does not remove exposed credentials from its Git history.
If credentials have been committed, rotate them and follow an appropriate history-cleanup process before making the repository available in the destination organization.
Starting the Migration and Synchronizing Changes
After preparing the repositories and destination organization, configure the migration environment.
Enterprise Live Migrations supports both an Azure DevOps portal experience and a command-line experience.
The CLI approach is useful when migrations need to be scripted or managed through an established operational process. The portal provides a guided workflow for selecting repositories and monitoring migration progress.
The migration environment requires a self-hosted Linux agent in Azure Pipelines. The agent must remain available throughout the migration.
The high-level workflow looks like this:
Azure DevOps Repository
|
v
Initial Validation
|
v
Initial Synchronization
|
v
GitHub Repository
|
^
|
Incremental Synchronization
|
|
New Commits and Changes
|
v
Azure DevOps Repository
During incremental synchronization, changes made in Azure DevOps are transferred to GitHub.
This allows developers to continue their normal work without immediately switching their local repositories.
The migration operator should monitor synchronization status and investigate failures before scheduling cutover.
ELM supports migrations of up to 30 repositories within its documented workflow: up to 20 repositories during the initial stage and 10 additional repositories during the incremental stage.
It also has a defined migration window. The cutover must be completed within 21 days of starting the full migration.
These limits should be considered when planning large enterprise migrations.
Planning the Final Cutover
Continuous synchronization reduces disruption, but the final cutover still requires coordination.
The organization must establish a clear point at which Azure DevOps stops being the system of record for repository changes.
A practical cutover process includes the following steps:
- Announce the planned cutover time to all development teams.
- Ask developers to finish or temporarily pause active pushes.
- Confirm that the latest incremental synchronization has completed successfully.
- Perform the cutover through the migration workflow.
- Verify branches, tags, commit history, and pull requests in GitHub.
- Confirm repository permissions and branch protection rules.
- Ask developers to update their local repository remotes.
- Resume normal development using GitHub.
ELM provides a brief read-only window during cutover, typically under 30 minutes for most repositories.
The organization should still communicate this window clearly. Developers need to know when they can push changes again and which repository they should use after the transition.
A simple local Git command can update an existing working copy:
git remote set-url origin \
https://github.com/organization/repository.git
git remote -v
The second command confirms that the remote now points to GitHub.
Teams should avoid allowing developers to continue pushing to both platforms after cutover. Multiple writable copies create unnecessary synchronization and conflict problems.
What Happens to Pull Requests and Branch Policies?
Repository migration is not complete when the source code appears in GitHub.
Development teams also depend on collaboration information and repository protection settings.
Enterprise Live Migrations supports transferring several important items:
| Repository data | Migration support |
| Git source and commit history | Supported |
| Branches and tags | Supported |
| Pull request titles and descriptions | Supported |
| Pull request comments and user history | Supported |
| Branch policies | Migrated as GitHub branch rulesets |
| Azure Boards work items | Not migrated |
| Pipeline definitions | Not migrated |
| Releases | Not migrated |
| Wikis | Not migrated |
| Azure Artifacts | Not migrated |
| Git LFS objects | Not migrated |
Not every Azure DevOps feature has a direct equivalent in GitHub.
For example, branch policies need to be reviewed after migration because the destination uses GitHub rulesets. The migration team should verify required reviews, status checks, branch restrictions, and other repository protection requirements.
Permissions also deserve attention. The team should confirm that developers have the correct access before allowing normal development to resume.
Keeping Azure Boards and Azure Pipelines During the Transition
Moving source code to GitHub does not necessarily mean that every Azure DevOps service must be retired immediately.
Some organizations want GitHub for source control but prefer to continue using Azure Boards for work tracking and Azure Pipelines for continuous integration and delivery.
A hybrid model can support this approach.
GitHub
|
Source Repository
|
+------+------+
| |
v v
Pull Requests Branches
|
v
Azure Pipelines
|
v
Build and Deploy
Azure Boards
|
v
Work Tracking
Enterprise Live Migrations can help establish the Azure Boards connection and rewire Azure Pipelines to reference the migrated GitHub repository.
This allows teams to move source control first without forcing an immediate migration of every development service.
However, pipeline definitions, releases, work items, wikis, and other non-repository data still need their own migration or replacement plan.
Using a Traditional Migration When Live Migration Is Unavailable
Not every organization meets the requirements for Enterprise Live Migrations.
For example, an organization using Azure DevOps Server or a GitHub destination that is outside the supported ELM scope may need another migration approach.
GitHub Enterprise Importer supports migrating Azure DevOps Cloud repositories to GitHub Enterprise Cloud, including source history and supported collaboration metadata.
However, its standard migration process does not provide incremental synchronization. GitHub recommends stopping repository changes during the production migration. If development continues, changes made during migration must be transferred manually.
For a simpler source-and-history migration, Git can also be used:
git clone --bare \
https://dev.azure.com/organization/project/_git/repository
cd repository.git
git push --mirror \
https://github.com/organization/repository.git
This approach transfers Git references and history, but it does not migrate pull requests, repository policies, or other collaboration metadata.
It also does not provide continuous synchronization automatically.
A traditional migration therefore needs a carefully planned freeze, a controlled final synchronization, or a separate process for transferring changes made during the migration.
Post-Migration Validation
After cutover, the migration team should verify that the destination repository is ready for production development.
A useful validation checklist includes:
- Confirm all expected branches and tags are present.
- Compare the latest commit on important branches.
- Verify commit history and repository contents.
- Review active and merged pull requests.
- Validate GitHub rulesets and required status checks.
- Confirm team and user permissions.
- Verify Azure Pipelines or GitHub Actions integrations.
- Test cloning, fetching, and pushing.
- Update repository references in scripts and development tools.
- Confirm that Git LFS files are available where required.
The team should also monitor the first few development activities after cutover.
A successful migration is not simply a completed transfer. Developers must be able to clone repositories, create branches, open pull requests, run builds, and merge changes without unexpected access or integration problems.
Summary
Moving Azure DevOps repositories to GitHub does not have to require a lengthy development freeze.
Enterprise Live Migrations provides continuous synchronization, allowing teams to keep working in Azure DevOps while repository changes are transferred to GitHub. A controlled cutover then establishes GitHub as the new system of record with a short read-only window.
The migration still requires preparation, repository validation, permission planning, and post-migration verification. Organizations must also understand which data is transferred automatically and which services require separate migration work.
For organizations outside the supported live migration scope, a traditional migration remains possible, but it requires a planned development freeze or a controlled process for transferring changes made during the migration.
The most important principle is to treat repository migration as a controlled transition of the development workflow, not simply a one-time Git push.
Join the conversation! Your thoughts help the community grow.