---
title: GitHub to GitLab Migration: Import and Cutover Checks | Remqa
url: https://remqa.com/blog/github-to-gitlab-migration
updated: 2026-11-27
---

[Home](https://remqa.com/) / [Blog](https://remqa.com/blog) / GitHub to GitLab Migration: Import and Cutover Checks

Code migration

# GitHub to GitLab migration: validate code, reviews and access

Plan a GitHub to GitLab migration with checks for repository history, pull requests, attachments, permissions and the final engineering cutover.

Remqa · November 27, 2026 · 5 min read

**Short answer:** Use the GitLab GitHub importer to move supported repository data, then validate reviews, attachments, permissions and branch rules before cutover. Treat pipeline setup and the final switch as separate acceptance work rather than assuming a completed import recreates the development workflow.

- The project importer does not migrate GitHub organizations or groups
- Review optional attachment and collaborator imports before starting
- Check failed entities when an import is partially completed
- Repository mirroring does not synchronize new or updated pull requests

By the Remqa engineering team · Last updated November 27, 2026

The repository appears in GitLab, but a release attachment still points to GitHub. A reviewer has unexpected access, and a merge can proceed without the status check the team expected. The Git transfer succeeded. The engineering workflow still needs acceptance tests before anyone changes the primary remote or retires the source.

A GitHub to GitLab migration should have separate checks for repository data, collaboration history and operating controls. Use the supported importer for project data. Keep a migration manifest that records the source repository, destination namespace, selected options and unresolved exceptions. The manifest and cutover gates below are recommended engineering practices.

## Define the destination before authorizing the import

GitLab's GitHub importer supports projects from GitHub.com and GitHub Enterprise. It does not migrate GitHub organizations or groups. Decide the GitLab group structure and repository ownership separately. The importer requires access to the source project and the Maintainer or Owner role for the destination group.

The GitHub import source must be enabled. GitLab.com enables it by default, while other installations may require administrator configuration. Also check whether the source organization restricts third-party application access. A visible repository in one browser session does not prove the importer has the required authorization.

The UI imports from github.com. For a self-hosted GitHub Enterprise Server domain, use the supported import API route instead. Keep source and destination credentials in approved secret storage. Record who owns the authorization and its cleanup without putting token values into the migration manifest or logs.

## Inventory the data and select import options

The importer supports Git repository data, branches, issues, pull requests, labels, milestones, wiki pages and release note content. It also supports review-related material such as pull request reviews, comments, assigned reviewers and review suggestions. Inventory representative examples so the destination can be tested against actual work rather than an assumed feature checklist.

| Area | Import consideration | Acceptance evidence |
| --- | --- | --- |
| Repository | Branches and Git history | Compare expected references and commit identities |
| Reviews | Pull requests, discussions and review data | Open representative active and completed reviews |
| Attachments | Optional Markdown attachment import | Open imported files without relying on source access |
| Access | Collaborator import and role mapping | Test allowed and denied operations |
| Merge controls | Supported branch rule mappings | Attempt representative blocked and permitted merges |

Markdown attachments are not imported by default. Select Import Markdown attachments if they are in scope. Without that import, source attachment links can break when the originals are removed from GitHub. Inspect issue descriptions, comments, pull request descriptions and release notes as distinct attachment locations.

Import collaborators is selected by default. Review it deliberately because imported members can consume seats and receive elevated permissions. Only direct collaborators are imported, not outside collaborators. Importing collaborators also requires an appropriate source role. Do not treat the selected checkbox as proof that every expected person will appear.

## Review identity and permission mappings separately

The documented role mapping assigns GitHub Read to GitLab Guest, Triage to Reporter, Write to Developer, Maintain to Maintainer and Admin to Owner. Those labels are not an acceptance test. Confirm the resulting abilities using the destination's actual project and group configuration.

GitHub Enterprise Cloud custom repository roles are not supported by this importer and cause partially completed imports. Put such roles on the exception list before starting. Decide who should receive access manually, and have the destination owner review the result. Avoid broad temporary grants simply to clear a migration warning.

Contribution attribution and membership are different concerns. The importer uses post-migration contribution mapping. Review the mapping workflow for the deployed GitLab version and destination namespace, then sample authors, assignees and reviewers. A readable author's name does not establish that the correct person has the correct access.

## Test branch rules and the delivery workflow

Supported GitHub branch protections map to GitLab branch rules or project-wide settings. For example, conversation resolution on the default branch maps to the All threads must be resolved project setting. Required pull requests map to the No one option for Allowed to push and merge. Review the resulting configuration in the destination.

The GitHub Require status checks to pass before merging rule is not imported. Treat required build and deployment checks as explicit acceptance work. List each control the team relies on, its destination implementation and the test that proves it blocks an unsafe merge. Do not approve cutover because a familiar branch name appears protected.

> **A complete import is not proof that a release is safe.** Validate access, review requirements, build results and deployment permissions before switching the team's working destination.

For the surrounding delivery system, inventory pipelines, secrets, runners and integrations as a separate workstream. Do not assume importer coverage for anything absent from the verified data contract. Run approved destination tests and compare the required outputs before changing production deployment ownership.

## Inspect partial results and attachment exceptions

Completed imports can be Complete, Partially completed or Failed. Expand Details to see which repository entities failed. Record each exception with an owner and a disposition. A failed attachment can matter even when the repository itself is usable, especially when it contains a release instruction or review evidence.

Known attachment limitations vary by source. GitLab cannot import GitHub Markdown image attachments uploaded to private repositories before May 9, 2023. For GitHub Enterprise Server, GitLab 18.4 and later import only image and video Markdown attachments, not other attachment types. Test the files your team actually needs instead of promising universal asset preservation.

Older pull request comments can also have a different thread structure. Comments created before 2017 are imported as separate threads because of a GitHub API limitation. Sample discussion context and references, not only comment totals. Preserve an approved source reference for exceptions while the team resolves them.

## Plan the final switch around both Git and review changes

Repository mirroring can support an interim Git synchronization arrangement, depending on the GitLab tier. It does not synchronize new or updated GitHub pull requests. A moving Git branch and a moving code review therefore need different reconciliation plans.

1. Rehearse the import with an agreed source inventory and destination owner.
2. Resolve failed entities and document accepted exceptions.
3. Define a final change boundary for code, issues and reviews.
4. Validate final references, review state, access and delivery controls.
5. Switch working remotes and integrations only after acceptance.
6. Retain the source under an agreed access and retirement policy.

Re-import creates a new copy with a new name rather than updating the same imported project. Plan the destination and cleanup before retrying. Keep any source retirement decision separate from import completion, with a rollback owner and a clear policy for work created after cutover.

## How Remqa helps with repository migrations

Remqa supports [code migration work](https://remqa.com/code-migration), including surrounding validation and delivery handoffs. A broader [migration project](https://remqa.com/migrations) can include repository inventories, exception tracking and destination acceptance checks. Bring one repository and the release workflow it supports. Define what must still work before moving the rest.

## Questions people ask.

**Q: Does importing a GitHub project migrate the organization too?**
No. The GitLab GitHub importer imports projects, not GitHub organizations or groups. Plan the destination namespace and access structure separately.

**Q: Can GitLab import GitHub pull requests and reviews?**
The importer supports pull requests, reviews, comments and related review data. Validate representative threads and inspect failed entities rather than relying only on a completed repository clone.

**Q: Are GitHub Markdown attachments imported automatically?**
They are not imported by default. Select the attachment option if needed and test source-specific limitations, including private-repository and GitHub Enterprise Server cases.

**Q: Will all GitHub branch protection rules transfer?**
No. Supported rules map to GitLab branch protections or project settings, but the GitHub Require status checks to pass before merging rule is not imported.

**Q: Does mirroring keep GitHub pull requests up to date in GitLab?**
No. Repository mirroring does not synchronize new or updated GitHub pull requests. Plan the review freeze and final reconciliation separately from Git synchronization.

Book a free 30-minute call with an engineer: https://calendly.com/meghanaj-connect/30min
