Searches for "GitHub Enterprise migration" have grown alongside GitHub Copilot: teams want the agent features, and those live on GitHub Enterprise Cloud. The most common routes in are from GitLab and from Azure DevOps. Here's how those migrations work, from GitHub's own documentation.
What's Inside
- The tool GitHub recommends, and which sources it supports
- What does and doesn't move from Azure DevOps
- Size limits that stop migrations
- How contributions get re-attributed
- The planning steps GitHub recommends
The tool: GitHub Enterprise Importer
GitHub Enterprise Importer (GEI) migrates into GitHub Enterprise Cloud. Its supported sources include Azure DevOps Cloud, Bitbucket Server and Data Center 5.14 and later, GitHub Enterprise Server 3.4.1 and later, GitHub.com, and GitLab (GitLab.com or maintained self-hosted versions). (1)
GitHub describes migrations at three levels of fidelity: "Source snapshot", "Source and history", and "Source, history, and metadata". GEI is the tool for the third. (2) A plain Git push only gets you source and history.
From Azure DevOps
GEI works with Azure DevOps Cloud only, not Azure DevOps Server. From Azure DevOps it migrates (3):
- "Git source (including commit history)"
- Pull requests, their user history and attachments
- Work item links on pull requests
- Repository branch policies
It does not migrate work items themselves, pipelines, user-scoped or cross-repository branch policies, or Git LFS objects (you push those afterwards).
That isn't the dead end it sounds like. GitHub's docs say "both Azure Pipelines and Azure Boards can be fully integrated with your GitHub experience." Many teams move repositories first, keep Boards and Pipelines running against GitHub, and move to GitHub Actions on their own schedule.
From GitLab
GitLab migrations use the GL2GH extension of the GitHub CLI: get access, set up blob storage, run a trial, then do follow-up tasks. (4) Read GitHub's GitLab pages for the exact data that moves before you promise anything to your developers about merge requests, issues or pipelines.
Size limits that stop migrations
From GitHub's planning documentation (2):
- 2 GiB per commit and 2 GiB per push.
- A 400 MiB file limit during migration, and 100 MiB once the repository is on GitHub. Use Git LFS for anything larger.
- A 40 GiB repository limit, currently in public preview. Measure with
git-sizer. - Ref names are limited to 255 bytes.
- Rulesets on the destination, such as commit-author email rules, can make a migration fail.
GitHub's pages give different thresholds for when to get expert help with large repositories (around 5 GB in one place, around 40 GB in another). Treat anything big as a case for a dry run first.
Getting credit right: mannequins
GEI attaches imported activity to placeholder users called mannequins, which you then reclaim and assign to real GitHub accounts. Until you do, GitHub warns that "mannequin content might not be searchable." Plan the reclaim step; it's easy to forget once code is flowing.
The order GitHub recommends
GitHub's planning page sets out the steps (2):
- Build an inventory of what you have.
- Measure repository sizes.
- Choose the migration type for each repository.
- Run "a dry run migration for every repository." The method is simple: "Just run a normal migration, then delete the repository in the migration destination."
- Plan the steps before and after each migration.
Where we come in
A migration is a good moment to set up GitHub properly: Copilot policies, branch protection, secret scanning and identity. See GitHub Copilot Business vs Enterprise and GitHub Advanced Security: GitHub vs Azure DevOps. If you'd like help planning or running the move, start with our GitHub Health Check or send us a message.
Kevin Evans
Founder, Code To Cloud Inc.
Kevin Evans is a Microsoft MVP for Azure. He and the Code To Cloud team build Azure platforms for enterprise and mid-market teams, from developer platforms to AI agents in production. He spent nearly five years at Microsoft, rising to Senior Solutions Engineer, and is a CNCF Ambassador and Calgary chapter lead, based in the Calgary area, Alberta. More about Kevin
Frequently Asked Questions
Can GitHub Enterprise Importer migrate from GitLab?
Yes. GitHub's docs list GitLab, both GitLab.com and maintained self-hosted versions, as a supported source for GitHub Enterprise Importer, using the GL2GH extension of the GitHub CLI.
What does GitHub Enterprise Importer move from Azure DevOps?
Git source with commit history, pull requests and their history, work item links on pull requests, pull request attachments and repository branch policies. Work items themselves and pipelines aren't migrated, and Git LFS objects are pushed separately afterwards.
Can we keep Azure Pipelines and Azure Boards after moving to GitHub?
Yes. GitHub's docs say both Azure Pipelines and Azure Boards can be fully integrated with your GitHub experience, so you can move repositories first and pipelines later.
How big a repository can GitHub Enterprise Importer move?
GitHub lists a 40 GiB repository limit (in public preview), 2 GiB per commit and per push, and a 400 MiB file limit during migration that drops to 100 MiB afterwards. Larger files should go to Git LFS.
Sources
Checked against GitHub's documentation on 3 December 2026.


