GitLab to GitHub with GitHub Enterprise Importer: what it migrates and what it leaves
GitHub Enterprise Importer has migrated GitLab repositories to GitHub Enterprise Cloud since August 2026. It carries Git history, issues and merge requests as pull requests, but not CI/CD, LFS objects, permissions, variables, webhooks or registries.
GitHub Enterprise Importer has officially migrated GitLab repositories to GitHub Enterprise Cloud since 3 August 2026, and it carries more than Git: issues, merge requests as pull requests, reviewers and approvers, milestones, releases and the wiki arrive with the history. It does not carry CI/CD pipelines, Git LFS objects, permissions, group membership, CI/CD variables, webhooks or registry content, and it cannot target GitHub Enterprise Server.
This post is for the engineer or platform lead who has to turn that sentence into a plan. It follows the current GitHub Docs for the GitLab path, sorts every GitLab project component into "migrated", "not migrated" or "your workstream", and covers when the official importer fits a repository and when an API replay does. The earlier survey of tools, written when there was no official GitLab importer, remains useful as background; this article is the current reference.
TL;DR
- GitHub made GitLab migrations with GitHub Enterprise Importer generally available on 3 August 2026, for gitlab.com and currently maintained GitLab Self-Managed versions, driven by the
gh gl2ghextension of the GitHub CLI. - The destination is an organisation on GitHub Enterprise Cloud (github.com or ghe.com). GitHub states that GitLab to GitHub Enterprise Server is not supported.
- The importer works from GitLab's project export archive, so it can only migrate what GitLab writes into that archive. CI/CD variables, webhooks and registry images are never in it.
- Merge requests become pull requests with comments, reviewers and approvers. Authors arrive as mannequins that an organisation owner reclaims afterwards.
- The documented ceilings are a 40 GB export archive on GitLab.com, a 40 GiB Git source per repository (public preview) and 400 MiB per file during migration.
- Pipelines, access model, rulesets, secrets, integrations, LFS objects and registries remain separate workstreams with their own owners.
- Shyftport offers the importer as one of two per-repository strategies, next to a git mirror with REST replay, and has no engine of its own for wikis, releases, CI/CD, branch protection, teams or registries on this path.
What exactly became generally available in August 2026?
The GitHub changelog entry of 3 August 2026 says that "Migrations from gitlab.com and GitLab Self-Managed to GitHub Enterprise Cloud with GitHub Enterprise Importer (GEI) are now generally available", self-served with "the gh gl2gh command-line extension". It covers single-repository and scripted bulk migrations, with archives staged in GitHub-owned blob storage or in your own AWS S3 or Azure Blob Storage account.
The same entry sets the boundary on the target side: the capability "supports migrations into organizations on GitHub Enterprise Cloud on github.com and ghe.com", and "Migrations from GitLab to GitHub Enterprise Server are not supported." If your target is self-hosted GitHub, the official path does not apply (see also our GitLab and GitHub comparison).
On the source side, GitHub Docs are precise about versions: "GitHub Enterprise Importer supports currently maintained (non-end-of-life) versions of GitLab", and "Older versions have not been tested or evaluated." An instance that has fallen out of GitLab's maintenance window is outside what GitHub has tested.
How does the importer move a GitLab project?
GitHub Enterprise Importer works from a GitLab project export file. GitHub Docs describe four steps per repository: the extension exports the GitLab project to a .tar.gz archive, stages the archive locally on the machine where the command runs, uploads it to blob storage that GitHub can read, and imports it into the destination organisation, "transforming GitLab entities into their GitHub equivalents".

That design makes GitLab's export feature a hard dependency. The projects "must be enabled for exports" (GitHub Docs), and GitLab applies default rate limits to the export endpoints: 6 project exports per minute and 1 export download per project per minute (GitLab Docs).
Prerequisites and tokens
The access requirements are specific:
| Side | Requirement | Documented detail |
|---|---|---|
| GitHub | Personal access token (classic) | "You can only use a personal access token (classic), not a fine-grained personal access token." An organisation that restricts classic tokens cannot use the importer. |
| GitHub | Scopes as organisation owner | repo, workflow, admin:org |
| GitHub | Scopes with the migrator role | repo, workflow, read:org (reclaiming mannequins is not available to this role) |
| GitLab | Personal access token | api and read_repository scopes |
| GitLab Self-Managed | Token owner | Must be an administrator, "so that the export is complete and user attribution is preserved" |
| GitHub | Rulesets | Add "Repository migrations" to the bypass list of each applicable ruleset |
| GitHub | IP allow list | Add the GitHub Enterprise Importer ranges for the destination organisation |
Installation needs GitHub CLI 2.4.0 or newer and two environment variables, GH_PAT and GITLAB_PAT (GitHub Docs):
gh extension install github/gh-gl2gh
export GH_PAT="TOKEN"
export GITLAB_PAT="TOKEN"
gh gl2gh migrate-repo \
--gitlab-server-url GITLAB_SERVER_URL \
--gitlab-group SOURCE_GROUP \
--gitlab-project SOURCE_PROJECT \
--github-org DESTINATION \
--github-repo NEW_REPO_NAME \
--use-github-storage
For a destination on GHE.com the command also takes --target-api-url, and with GitHub-owned storage --target-uploads-url. New repositories default to private visibility unless --target-repo-visibility says otherwise.
Blob storage
There are three places to stage the archive (GitHub Docs). GitHub-owned storage, selected with --use-github-storage, is the recommended option and needs no setup: "GitHub deletes the archive automatically after a successful migration, or seven days after a failed migration." With AWS S3 or Azure Blob Storage you own the lifecycle, and GitHub does not delete the archives, so a lifecycle rule is your job. For Azure, only storage-account access-key connection strings are supported, not SAS.
Size limits
The limits in the GitHub documentation come from three places:
- GitLab: the project export API "will not produce an archive larger than 40 GB on GitLab.com". This covers the whole archive, metadata included, and may differ on self-managed instances.
- GitHub Enterprise Importer: a 40 GiB limit for the Git source of one repository (marked public preview) and a 400 MiB limit per file during migration.
- GitHub: 2 GiB for a single commit and for a single push, 255 bytes for a ref name, and 100 MiB per file once the migration is complete.
GitHub recommends the git-sizer tool to check a repository against the source limit. The 100 MiB file limit is raised to 400 MiB only during the migration, so decide what moves to Git LFS before cutover; our post on Git LFS migration gotchas covers the pointer and blob split.
What is migrated, what is not, and who owns the rest?
GitHub introduces its migrated-data list with a condition that explains most of the gaps: the importer migrates the listed data "When the data is present in the GitLab export archive". The table below combines GitHub's two lists with GitLab's own list of exported and non-exported project items.
| GitLab component | GitHub Enterprise Importer | Your workstream |
|---|---|---|
| Git source and commit history | Migrated | Verify refs after import |
| Repository wiki | Migrated | Check links and structure |
| Issues and issue comments | Migrated, with issue state and milestone events; threaded discussions become flat comments with the thread context | Review a sample |
| Merge requests | Migrated as pull requests, with reviewers, approvers and state events | Review a sample |
| Merge request diff comments | Review comments only when diff data is present, otherwise flat comments; only the latest diff is in the export | Accept or document the loss |
| Commit comments, milestones, timeline events, emoji reactions, uploads | Migrated | None |
| Project configuration | Only what "maps cleanly, such as the default branch" | Check repository settings |
| Releases and release assets | Migrated | None |
| Project members | Migrated as mannequins | Reclaim, then grant access |
| Git LFS objects | Not migrated; pointer files travel with history | Push LFS objects separately |
| Merge trains, pipeline gates, required approvals, topics, avatars, mirroring | Not migrated | Rulesets and repository settings |
| Group settings and group membership | Not migrated | Organisations, teams, access design |
| Snippets, issue boards, time tracking, design management | Not migrated | Archive, re-home or drop |
| CI/CD pipelines and pipeline schedules | Not migrated | GitHub Actions rebuild |
| Vulnerability reports | Not migrated | Security tooling on the target |
| Webhooks, CI/CD variables, job traces and artifacts, pipeline triggers | Not in the GitLab export at all | Integrations and secrets re-entry |
| Package and container registry images | Not exported by GitLab | Registry migration |

Two components sit outside the table. Protected branches are a subtle case: GitLab's export does include "Protected branches and tags" and push rules, but GitHub's migrated-data list does not name them, and it lists required approvals among the repository policies that are not migrated. Plan to rebuild protection as rulesets. GitLab Pages is named in neither GitHub's migrated list nor GitLab's list of exported items, so treat it as a rebuild as well.
The detailed behaviour of merge requests, including what happens to inline review comments, has its own article in this series: how GitLab merge requests become GitHub pull requests.
Which workstreams remain after the importer has run?
GitLab CI/CD to GitHub Actions
GitHub's not-migrated list is blunt: "CI/CD pipelines and pipeline schedules (.gitlab-ci.yml has no automatic GitHub Actions equivalent)". The file arrives as an ordinary file in the Git history.
The separate tool for this is GitHub Actions Importer, which has a documented GitLab path with audit, forecast, dry-run and migrate commands (GitHub Docs). Its documentation is clear about the edges: automatic caching between jobs of different workflows is not supported, masked project or group variable values and artifact reports must be migrated manually, and constructs such as include, rules, only/except, parallel, services, environment and workflow are marked partially supported. Converted workflows need review before they carry production load; the structural mismatches are covered in GitLab CI to GitHub Actions translation gotchas.
CI/CD variables and secrets
GitLab does not export CI/CD variables, and GitHub Actions Importer lists masked variable values as a manual task. Every secret is re-entered on GitHub by someone who has the value or can rotate it. We wrote about why no migration tool moves secrets and how to scope that re-provisioning.
Group hierarchy and permissions
GitHub's planning guide contrasts the two models: GitLab has instance, groups, subgroups ("which can be nested up to 20 levels deep") and projects, while GitHub has enterprise, organisation and repositories. Each top-level GitLab group "typically corresponds to a single organization on GitHub", and "GitHub does not have an equivalent of GitLab's nested subgroups". GitHub advises against one organisation per subgroup and recommends teams instead.
Access does not come across either: "GitHub Enterprise Importer does not migrate repository permissions, group settings, or group membership from GitLab." Repositories are migrated as private by default, and only the user who ran the migration and organisation owners have access until you grant it. The naming side of flattening a nested path into one repository name is covered in GitLab groups to GitHub organisations and repository naming, and the access side in permissions are not portable.
Mannequins and the migration log
After an import, "all user activity in the migrated repository (except Git commits) is attributed to placeholder identities called mannequins" (GitHub Docs). Only organisation owners can reclaim them, and only for existing organisation members. The GitLab extension has its own commands (GitHub Docs):
gh gl2gh generate-mannequin-csv --github-org DESTINATION --output FILENAME.csv
gh gl2gh reclaim-mannequin --github-org DESTINATION --csv FILENAME.csv
By default the member receives an invitation and the mannequin is not reclaimed until it is accepted; organisations with Enterprise Managed Users can add --skip-invitation. Reclaim before any transfer to another organisation, because it is not possible afterwards.
Each migrated repository also gets an issue titled "Migration Log", readable by anyone with read access to the repository. GitHub says you should review it for every migrated repository.
Webhooks, registries and LFS
Webhooks are absent from the GitLab export, so the integration inventory has to come from GitLab itself before cutover. Package and container registry images are not exported, which makes registries a migration of their own. Git LFS objects "must be pushed to your migration destination separately as a follow-up task".
How do you run this across many repositories?
The bulk path is a generated script. gh gl2gh inventory-report writes groups.csv and projects.csv, including merge request counts, and GitHub notes that "Migration timing is largely based on the number of merge requests in a repository". gh gl2gh generate-script then produces a PowerShell script with one migrate-repo command per repository, which you edit to remove repositories, rename targets or set visibility (GitHub Docs).
GitHub recommends a trial run into a test organisation first. The importer "doesn't support delta migrations, so any changes that happen during the migration will not migrate", which is why GitHub recommends halting work in a repository during its production migration.
Official importer or API replay: how to decide per repository
An API replay recreates issues and pull requests through GitHub's REST API instead of importing an archive. The documented differences:
| Question | GitHub Enterprise Importer | REST replay |
|---|---|---|
| Merged and closed merge requests | Converted to pull requests with reviewers, approvers and state events | Creating a pull request requires a head and a base branch, so only merge requests whose branches still exist can become pull requests |
| Authorship | Mannequins, reclaimable by an organisation owner | The same endpoint accepts no author or creation-date parameter, so items are created by the token's identity at replay time |
| GitHub credential | Classic personal access token only | Whatever the tool supports |
| GitLab dependency | Project export enabled; administrator token on self-managed; 40 GB archive limit on GitLab.com | GitLab API access |
| Large files | 400 MiB per file during migration | The normal 100 MiB file limit applies |
| Target | GitHub Enterprise Cloud only | Depends on the tool |
Where merged merge request history as real pull requests matters and the repository fits the limits, the importer gives the higher-fidelity result. Where classic tokens are restricted, or exports are disabled or too large, a replay is the option left.
How Shyftport handles GitLab to GitHub
In Shyftport's repository mapping each GitLab repository is assigned one of two strategies. Classic is a git mirror followed by a REST replay. GEI hands GitLab's export archive to GitHub Enterprise Importer, and needs a classic personal access token on the target connection for the reason given above. The choice is made in the repository drawer, which also shows the readiness findings, the target name, the visibility and the wave; in the sample below the open repository is blocked by an oversized non-LFS blob.

The outcomes differ. In Classic, open merge requests become GitHub pull requests on the same branches, while merged and closed merge requests are preserved as closed issues labelled historical-mr, with the original author named in the body text. In GEI, the content of the import is GitHub's importer at work, with mannequins that an operator can preview and reattribute from the Identities page, by invitation or immediately, with a dry run first. Identity mappings are frozen into each run, but the engines do not yet act on them: the related plan settings carry a note that they take effect in a later release, and reclaim is a manual operator action.
Around either strategy the mechanics are the same:
- Three run sections: repositories, issues, and merge requests. Issue migration is optional.
- Readiness findings before a run: an oversized non-LFS blob or a remediation finding blocks a GEI decision for that repository. A Classic decision is not blocked; the run parks the repository for an operator decision instead of pushing it.
- Launch-blocker preflight: before launch, one read-only check lists every repository that would be refused and why: target name already reserved, target renamed within the same plan, a retry whose reservation was released, source repository locked, or source busy in another plan's run.
- Fail-fast behaviour: one repository's failure does not end the wave, three consecutive failures with the same non-repository-specific cause stop the run, and every failure names the stage and the host.
- Checkpoint resume: completed phases are skipped, and an import still running on GitHub is resumed, not resubmitted.
- Verification: after migration, branch and tag names on the target are compared with the source. It is not a commit-level comparison.
- Git LFS: objects are transferred on both strategies; with GEI that is a separate leg after the import.
In the preflight below, the Pilot and Catalog waves are ticked and two repositories are listed as blocked: the target name of one is already reserved by another plan, and the other is being migrated by another plan. Only blocked repositories are listed, and the launch button is disabled.

The limits are equally plain. Targets are GitHub's cloud editions only, not GitHub Enterprise Server. Shyftport has no engine on this path for wikis, releases, CI/CD variables, pipelines, branch protection, groups to teams, or container and package registries, so for a GEI-strategy repository whatever the importer carries of those is GitHub's behaviour, and the rest stays on your workstream list. There is no automatic switch from GEI to Classic when an import fails; the operator decides.
For how this compares with running the importer on its own, see Shyftport and GitHub Enterprise Importer side by side, or start from the GitLab to GitHub migration guide. If you want to walk through your own repository list and which strategy fits which repository, talk to a Shyftport engineer.
Sources
- Migrate from GitLab to GitHub with GitHub Enterprise Importer - GitHub Changelog(accessed 2026-11-10)
- Understand migrations from GitLab to GitHub - GitHub Docs(accessed 2026-11-10)
- Plan your migration from GitLab to GitHub - GitHub Docs(accessed 2026-11-10)
- Manage access for a migration from GitLab to GitHub - GitHub Docs(accessed 2026-11-10)
- Install and configure GitHub Enterprise Importer - GitHub Docs(accessed 2026-11-10)
- Configure blob storage - GitHub Docs(accessed 2026-11-10)
- Migrate your repositories from GitLab to GitHub - GitHub Docs(accessed 2026-11-10)
- Follow-up tasks - GitHub Docs(accessed 2026-11-10)
- Reclaiming mannequins for GitHub Enterprise Importer - GitHub Docs(accessed 2026-11-10)
- Migrating from GitLab with GitHub Actions Importer - GitHub Docs(accessed 2026-11-10)
- Migrate projects and groups by using file exports - GitLab Docs(accessed 2026-11-10)
- REST API endpoints for pull requests - GitHub Docs(accessed 2026-11-10)
FAQ
- Does GitHub Enterprise Importer support GitLab as a source?
- Yes. GitHub announced general availability on 3 August 2026 for migrations from gitlab.com and GitLab Self-Managed to GitHub Enterprise Cloud, run with the gh gl2gh extension of the GitHub CLI. The destination must be an organisation on GitHub Enterprise Cloud on github.com or ghe.com. The same announcement states that migrations from GitLab to GitHub Enterprise Server are not supported.
- What does GitHub Enterprise Importer migrate from a GitLab project?
- According to GitHub Docs it migrates the Git source with commit history and the repository wiki, commit comments, project configuration that maps cleanly such as the default branch, issues and issue comments, merge requests converted to pull requests with comments, reviewers and approvers, milestones, timeline events, emoji reactions, uploads, releases with their assets, and project members as mannequins. It only migrates data that is present in the GitLab export archive.
- What is not migrated from GitLab by GitHub Enterprise Importer?
- GitHub Docs lists Git LFS objects, repository policies such as merge trains and required approvals, group settings and group membership, snippets, issue boards, time-tracking and design-management data, CI/CD pipelines and schedules, and vulnerability reports. Webhooks, CI/CD variables, job traces and artifacts, child-pipeline history and pipeline triggers are also absent because GitLab does not include them in the project export. GitLab Docs adds that package and container registry images are not exported.
- Which tokens does a GitLab to GitHub migration with GitHub Enterprise Importer need?
- On GitHub you need a personal access token (classic) with the repo, workflow and admin:org scopes as an organisation owner, or repo, workflow and read:org with the migrator role. Fine-grained personal access tokens cannot be used. On GitLab the personal access token needs the api and read_repository scopes, and on self-managed instances it must belong to an administrator.
Related reading
Migrating from GitLab to GitHub: the tooling landscape before and after the official importer
GitHub Enterprise Importer has officially migrated GitLab sources into GitHub Enterprise Cloud since 3 August 2026. What the official path covers, what it still leaves to you, and how the other tooling options compare for an enterprise-scale move.
Bitbucket Cloud vs Bitbucket Data Center to GitHub: two different migrations
GitHub Enterprise Importer migrates Bitbucket Server and Data Center 5.14+ with pull requests. For Bitbucket Cloud, GitHub documents only a source and history move. What exists in each edition, and how that changes your plan.
GitHub Universe 2026 recap, part 3: what it changes for teams planning a migration to GitHub
Universe 2026 shipped no migration tooling: GitHub Enterprise Importer, mannequins and the supported sources are unchanged. What moved is the business case, through the Copilot access licence model.