# GitHub to GitLab Migration: What the Importer Moves and What It Leaves

Canonical: https://www.taskrhino.ca/en-us/data-migration/github-to-gitlab/

> GitHub to GitLab migration guide: what GitLab's importer brings, what you set up by hand, user mapping, rate limits and rewriting Actions as GitLab CI/CD.

Published: 2026-12-05  
Updated: 2026-12-05  
Author: TaskRhino Team

**GitLab’s built-in GitHub importer moves the repository, branches, issues, pull requests, comments, wiki pages, release notes, labels, milestones and Git LFS files, as of December 2026. It does not move GitHub organizations, and its list of imported items has no GitHub Actions pipelines, so those are rewritten as `.gitlab-ci.yml` files. Plan a test import, a user clean-up, a CI rewrite and a cutover day.**

This guide puts what the importer moves and what it leaves into one table, then goes through each part: who can run it, how users are mapped, rate limits, known issues, GitHub Actions and the cutover. Short on time? Jump to the move in one table.

**Key takeaways**

-   GitLab says importing projects does not migrate any type of group or organization from GitHub. You create the groups yourself.
-   The importer is built into GitLab. You need access to the GitHub project and the Maintainer or Owner role in the destination GitLab group.
-   By default, GitLab does not match users by email. Its page says contributions go to placeholder users first, and you reassign them after the import.
-   GitLab’s page lists no GitHub Actions workflows, secrets or webhooks among the imported items, so plan to rebuild each one.
-   A test import first is easy: GitLab says a finished import can be run again as a new copy.

We’re a certified monday.com partner. We do not move code repositories, so this is a neutral guide: where your own platform team or GitLab’s documentation is the right call, we say so. Here’s how we checked.

## GitHub to GitLab in One Table

Copy this table into your own plan. The “What GitLab says” column follows GitLab’s own documentation (as of December 2026). Where GitLab is silent, the last column is our view.

| What you have | What GitLab says | What you do by hand |
| --- | --- | --- |
| Repository and branches | Imported: Git repository data, all project branches, and fork branches of open pull requests | Check branch names and the default branch |
| Issues, pull requests, comments | Imported, with an Imported badge; pull requests become merge requests; reviews and review comments come too | Read a sample of each and check the references |
| Wiki, release notes, labels, milestones | Imported | Spot-check each |
| Git LFS objects | Imported; the token needs the `read:org` scope if the project has LFS files | Compare the LFS size on both sides |
| Markdown attachments | Not imported by default; you can switch them on, which can add a lot of time | Decide per project whether the links in old issues matter |
| Branch protection rules | Mapped to GitLab branch protection or project settings; the status checks rule is not imported | Re-create status checks as external status checks |
| Collaborators | Imported by default, with roles mapped; may use a seat | Review each member and role |
| Users and credit for past work | Placeholder users first; you reassign them after the import | Reassign, then ask each person to accept |
| Organizations and teams | Not migrated | Create groups and subgroups, and add people |
| GitHub Actions workflows | Not in the imported list; GitLab CI/CD reads `.gitlab-ci.yml` | Rewrite each workflow |
| Secrets, variables, webhooks | Not in the imported list | List and re-create them (our view) |

Two things sit under the table. First, nothing in GitLab’s documentation promises an exact copy: a finished import can be *complete*, *partially completed* or *failed*, and you can expand the details to see what did not come over. Second, the order matters: test first, cut over once, and archive the GitHub side last.

## What GitLab’s GitHub Importer Brings

GitLab’s page, “Migrate from GitHub,” says you can import projects from GitHub.com or from GitHub Enterprise. The import list, as of December 2026, includes the Git repository, all branches, issues and pull requests with their comments, pull request reviews and review comments, labels, milestones, wiki pages, release notes, Git LFS objects, repository descriptions and branch protection rules. Issue and pull request events can be imported as an additional item that you choose. References between pull requests and issues are kept. Each imported repository keeps its visibility level, unless that level is restricted, in which case it takes the default project visibility.

What you need before you start:

-   **The right roles.** Access to the source GitHub project, and the Maintainer or Owner role in the destination GitLab group.
-   **The import source switched on.** It is on by default on GitLab.com. On a self-managed GitLab, ask the administrator.
-   **No blocking policy.** The GitHub organization must not restrict third-party application access in a way that stops the GitLab instance you import to.
-   **The right token, if you use one.** Only classic personal access tokens are supported, with the `repo` scope. Add `read:org` to import collaborators or Git LFS files.

There are three ways in. GitHub OAuth works on GitLab.com and on a self-managed GitLab that has it set up, and GitLab says it has an edge over a token because the backend exchanges the access token with the right permissions. A personal access token is the other route in the web interface. The API can import public repositories you do not own, reads from GitHub Enterprise Server, and has a timeout option the web interface lacks. GitLab says the web interface always imports from github.com, so a self-hosted GitHub Enterprise Server needs the import API with a GitLab access token that has the `api` scope.

In the importer you can filter the repository list by owner, collaborator or organization, edit the target namespace and name, and import one repository or all of them. The Status column shows progress. A finished import is *complete*, *partially completed* or *failed*, and the details list what failed. GitLab also says a completed import can be re-imported under a new name, which creates a new copy of the source project.

## What You Set Up by Hand

The importer works on projects. GitLab says it does not migrate or import any type of group or organization from GitHub to GitLab. So before the first import, build the shape of the destination (our view):

-   **Groups and subgroups.** Create them to match how your teams own repositories, then import into the right one. The role you hold in that group decides whether the import can run.
-   **People and seats.** Collaborator import is selected by default. GitLab warns that it might use a seat in the group and grant permissions as high as project owner. Review it before you leave it on. Only direct collaborators are imported; outside collaborators never are.
-   **Roles.** GitLab maps GitHub roles like this: Read to Guest, Triage to Reporter, Write to Developer, Maintain to Maintainer and Admin to Owner. Custom repository roles on GitHub Enterprise Cloud are not supported and cause partially completed imports. To import collaborators you need the Write or Maintain role on the GitHub project, or that part is skipped.
-   **Branch protection.** GitLab maps the rules it understands, for example “Require signed commits” to a push rule that rejects unsigned commits.
-   **Status checks.** “Require status checks to pass before merging” is not imported. GitLab says you can create external status checks by hand.
-   **Secrets, variables, webhooks and deploy keys.** GitLab’s imported list does not include them. In our view, write them down in a spreadsheet before the import, so that no one finds a missing deploy key on cutover day.

## Who Gets Credit: Users and Placeholders

An older method matched users by public email address. GitLab’s current page describes that as an alternative method for GitLab 18.7 and earlier, says it is not recommended, and says it is unavailable for migrations to GitLab.com and to self-managed GitLab 18.8 and later.

The default is post-migration mapping. GitLab’s page on it says contributions and memberships are first assigned to placeholder users, created even if a user with the same email already exists. After the import you can reassign them to existing users, including users with different emails, or to new users. A person can accept or reject the reassignment. You can also leave some contributions with a placeholder to keep history.

Before you start, GitLab’s page asks you to plan for the number of users, according to its user limits. If you import to GitLab.com, set up your paid namespace first. If you import to GitLab.com and use SAML single sign-on for your groups, every user must link their SAML identity to their GitLab.com account. Once you pass the placeholder user limit, GitLab assigns work from any new users to a single “import user” instead, and some of it might not be created.

Definition

**A placeholder user:** a stand-in account that GitLab creates for the people and work it imports, until you reassign that work to a real GitLab user.

One caution from GitLab’s page: importing into a personal namespace does not support this mapping, and all contributions are assigned to the namespace owner and cannot be reassigned.

## Rate Limits and Large Imports

GitLab says GitHub API requests are usually subject to a rate limit of 5,000 requests per hour. It says a self-managed GitLab configured with GitHub OAuth through an OAuth app owned by a GitHub Enterprise Cloud organization gets 15,000 requests per hour, which speeds the import up.

GitLab also gives a size example from its own testing: it imported the public kubernetes/kubernetes repository, with about 80,000 pull requests, 45,000 issues and about 1.5 million comments, in 76 hours. Every import differs, so treat that as an upper-end example, not a forecast. A test import on your biggest repository is the way to get your own number (our view).

For self-managed GitLab, GitLab says to increase the number of Sidekiq workers for the importer queues, and recommends at least four processes on separate servers for the best result. It says that does not shorten the time spent cloning repositories. One more known issue: on self-managed and Dedicated GitLab, an OAuth app that uses expiring user access tokens can make an import of several repositories fail when it runs longer than eight hours. GitLab says to opt the app out of expiring tokens.

## Known Issues to Check First

GitLab lists known issues on the same page. As of December 2026, the ones most likely to matter:

-   **Old review threads.** Pull request comments created before 2017 are imported in separate threads, because of a limit in the GitHub API.
-   **Attachments.** Markdown image attachments uploaded to private repositories before May 9, 2023 cannot be imported. With SAML single sign-on on the GitHub side, attachments might fail; GitLab’s workaround is to add the importing user as an outside collaborator. For imports from GitHub Enterprise Server, GitLab says Markdown attachments are not imported in GitLab 18.3 and earlier; in 18.4 and later only video and image files are.
-   **References.** GitHub uses `#` for both issues and pull requests, GitLab uses `#` for issues and `!` for merge requests. In comments GitLab links only to issues, and in descriptions it creates no links, so some cross-references need a manual look.
-   **Usernames.** GitLab adds backticks to username mentions so that a mention does not link to a different person with the same name.
-   **Auto-merge.** Merge commits signed with GitHub’s internal key can show as unverified in GitLab.

## GitHub Actions to GitLab CI/CD

The importer brings the repository. GitLab’s page for people moving from GitHub Actions says GitLab CI/CD uses a `.gitlab-ci.yml` file in the repository’s root by default, where GitHub uses workflow files in `.github/workflows`. Both are YAML in the repository, both run jobs in stages, and jobs can each use a different container image. In our reading, the old workflow files come across as ordinary files, and nothing runs until you write the new pipeline.

GitLab maps the main keywords this way:

| GitHub Actions | GitLab CI/CD | In GitLab |
| --- | --- | --- |
| `env` | `variables` | Set at the global or job level, or in the interface |
| `jobs` | `stages` | Stages group jobs together |
| `runs-on` | `tags` | Tags pick the runner |
| `steps` | `script` | One list of commands per job |
| `uses` | `include` | Adds configuration from other files |
| `on` | not applicable | GitLab is tied to Git, so polling options for triggers are not needed (GitLab says triggers can be configured per job if required) |

GitLab also notes that GitHub has a marketplace of third-party actions that might need extra support or licensing, while GitLab maintains its features itself and offers some third-party integrations through templates. Whether a given marketplace action has a GitLab equivalent is something to check one by one (our view).

## The Order of Work, Step by Step

GitLab’s documentation covers the importer. The sequence below is our advice, drawn from how code moves usually go.

1.  **List what lives around the code.** Repositories, teams, deploy keys, secrets, webhooks, integrations and workflows.
2.  **Build the groups and roles in GitLab.**
3.  **Run a test import** of one small and one large repository, and read the status details.
4.  **Rewrite a workflow** into `.gitlab-ci.yml` and run it on the test copy.
5.  **Reassign users** and ask each person to accept.
6.  **Pick a cutover day.** GitLab says you can keep an imported project updated from GitHub until you are ready to move. With a Premium or Ultimate plan, mirroring does that for the code, but it does not sync new or updated pull requests.
7.  **Run the final import, switch the team over, and update remotes.** Each developer points their clone at the new address with `git remote set-url`.
8.  **Archive the GitHub repositories last.** GitHub says an archived repository is read-only, and recommends closing issues and pull requests and updating the README first.

Our [migration plan template](https://www.taskrhino.ca/en-us/data-migration/migration-plan-template/) has rows for the switch day and the way back, and the same shape works for a code move. For the timing of a move, see our [guide to how long a move takes](https://www.taskrhino.ca/en-us/data-migration/how-long-does-a-monday-migration-take/).

## When Issues and Tasks Belong in a Work Tool

The importer brings GitHub issues into GitLab. Some teams use this move to settle where planning lives. If your issues are really a project plan for people who do not write code, a work tool may fit better than a code host (our view). Our guide to [moving Jira data into monday.com](https://www.taskrhino.ca/en-us/data-migration/jira-to-monday/) shows what that kind of move involves, and our [Jira alternatives](https://www.taskrhino.ca/en-us/project-management-software/jira-alternatives/) post compares the tools, GitLab among them.

## Frequently Asked Questions

**Do pull requests and issues move?**

### 

Yes. GitLab’s importer lists issues, pull requests, their comments, and pull request reviews. Pull requests appear as merge requests. Check the known issues above for threads and attachments.

**Does Git LFS move?**

### 

GitLab lists Git LFS objects among imported items. When you use a token, GitLab’s page says to select the extra `read:org` scope if your project has Git LFS files. See what GitLab’s GitHub importer brings.

**What happens to GitHub Actions?**

### 

You rewrite them. GitLab has no list entry for workflows, and its own migration page describes writing the equivalent `.gitlab-ci.yml` by hand or with an agent. The keyword map is in GitHub Actions to GitLab CI/CD.

**Can I import from GitHub Enterprise Server?**

### 

Yes, through the import API, because the web importer reads only from github.com. You need a GitLab access token with the `api` scope. A server on an internal network may also need a reverse proxy that GitLab.com can reach.

**Will authors keep their names?**

### 

Not at first. GitLab assigns past work to placeholder users, and you reassign it afterwards to real accounts. People can accept or reject. One exception: an import into a personal namespace gives all work to the namespace owner, and it cannot be reassigned. See who gets credit.

**Can I keep GitHub in sync until the switch?**

### 

For the code, on a Premium or Ultimate plan, mirroring can keep the imported repository in step. New or updated pull requests are not synced, so freeze them near cutover (our view).

## What to Do Next

**The bottom line:** a GitHub to GitLab move is mostly the importer plus three jobs it does not do: groups and roles, user reassignment, and the CI rewrite. Run a test import first, because it shows the gaps for little cost.

**Our recommendation:** this week, list your repositories, their workflows and their secrets, and run one test import. That list and that test are most of the plan.

**Moving CRM or project data into monday.com?**

That is separate from a code move, and it is the move we do. We sign an NDA before the free assessment. A test migration on a sample of your own data comes first, and you get a fixed quote after the free assessment. See our [data migration services](https://www.taskrhino.ca/en-us/data-migration/).

[Book a free call](https://www.taskrhino.ca/en-us/contact-us/?service=migration)

## How We Checked

We read GitLab’s and GitHub’s own documentation pages as page text on December 4, 2026. We did not run an import, and we did not open a GitLab or GitHub account for this guide.

**Sources, and what we could not verify**

-   GitLab Docs, [Migrate from GitHub](https://docs.gitlab.com/user/project/import/github/), read December 4, 2026: imported items, roles, tokens, rate limits, known issues, collaborator roles, branch protection mapping, mirroring
-   GitLab Docs, [Post-migration contribution and membership mapping](https://docs.gitlab.com/user/import/mapping/post_migration_mapping/), read December 4, 2026: placeholder users, reassignment, personal namespaces, enterprise users
-   GitLab Docs, [Migrate from GitHub Actions](https://docs.gitlab.com/ci/migration/github_actions/), read December 4, 2026: the `.gitlab-ci.yml` file and the keyword map
-   GitHub Docs, [Archiving repositories](https://docs.github.com/en/repositories/archiving-a-github-repository/archiving-repositories), read December 4, 2026: archived repositories are read-only
-   Vendors change these pages; the facts above are as of the day we read them. The GitLab pages show no last-updated date, and feature versions in them (for example 18.4 and 18.8) will move on
-   Google results for these searches (Google’s own summary, forums, blogs, videos) were seen only as titles and snippets, and no fact from them is used
-   We did not read GitLab’s import API reference, so the API method says only what the importer page says
-   The order of work, the advice on groups and secrets, and the view on moving issues to a work tool are our view, not a rule from either vendor; ask GitLab or GitHub about your own case

More from this cluster: [all our data migration services](https://www.taskrhino.ca/en-us/data-migration/).
