Migrating from GitLab to Forgejo

Moving from GitLab to Forgejo is a migration of workflows, permissions and pipelines as much as repositories. Effort depends on which GitLab-only features your team uses, how many projects and users you carry and whether you run a parallel period before cutover.

On this page

Migrating from GitLab to Forgejo: the short answer on effort

A team running self-managed GitLab that is weighing Forgejo's GPL license and non-profit governance against its license spend and upgrade load should expect repositories and their history to move with documented tools. CI, identity, permissions and any GitLab-only features set the effort, so size the work from a written inventory, because scope drives effort more than repository count. List every project, pipeline, runner, user group, integration and admin setting, then tag each item as a straight move, a rewrite or a decision that needs an owner. That inventory is the document you price against. Before committing, confirm the migration path for your exact GitLab and Forgejo versions, and check the license and governance terms in the Forgejo FAQ.

The effort concentrates in four places. GitLab CI pipelines defined in .gitlab-ci.yml do not carry over as-is, because Forgejo Actions is a built-in CI system designed to be familiar to GitHub Actions users, but it is not compatible with GitHub Actions. Every pipeline needs rewriting and every runner needs registering on the Forgejo side. Identity is the second area. GitLab Self-Managed supports LDAP, SAML, generic OAuth 2.0, Kerberos, JWT, smart card authentication and SCIM provisioning, so list which of these your staff, service accounts and deploy tokens depend on, then confirm which options your target Forgejo version supports against the same directory. Third, group and project roles, protected branches and approval rules must be mapped one by one to Forgejo's permission model. Fourth, identify GitLab-only features in use, such as Geo for warm-standby disaster recovery, which GitLab lists for Premium and Ultimate. Each one needs either a replacement or a documented decision to drop it.

License spend and upgrade load are where the business case is won or lost. GitLab Free costs 0 US dollars, Premium costs 29 US dollars per user per month billed annually, and Ultimate is custom priced, according to the GitLab pricing page. Savings depend on which tier your users actually need, and staff time for the migration is a cost in either case. On upgrades, GitLab requires upgrade stops at versions x.2, x.5, x.8 and x.11 since GitLab 17.5, which shapes your planning calendar. Forgejo v15 is the LTS release supported until July 15, 2027, and v17.0.0 is supported until January 28, 2027, so choose a target line and plan its patch cadence. When requesting a quote, ask for a written scope that covers the CI rewrite count, the identity and permissions map, the paid GitLab features in use, the export and import path for your versions, and a rollback plan if cutover fails.

Why teams leave GitLab for Forgejo, and when they should stay

GitLab Community Edition is MIT licensed, but the ee/ directory is proprietary and needs a paid subscription. Teams that move usually weigh that edition boundary, the per-seat price of higher tiers and the frequency of required upgrades against what Forgejo offers. These points matter most when licensing, procurement or change management carries weight in the decision.

  • Edition boundary: Features in the ee/ directory need a paid subscription, so the MIT license covers only part of the product. This matters if your developers depend on those features.
  • Seat pricing: The GitLab pricing page lists Premium at 29 US dollars per user per month billed annually, and Ultimate is custom priced. This matters for large developer populations that need Premium features. Forgejo's license sets no per-seat fee, so compare your own infrastructure and staffing costs.
  • Project governance: Codeberg e.V., a non-profit association registered in Berlin, owns the Forgejo domains, and project governance stays independent. This matters if vendor control of the roadmap is a board-level concern. Forgejo is GPL-3.0-or-later from v9.0 onward and MIT for earlier versions, so confirm which license applies to your version.
  • Upgrade cadence: GitLab requires upgrades to pass through required upgrade stops, which since GitLab 17.5 fall at x.2, x.5, x.8 and x.11. This matters if your change windows are short. Confirm the upgrade path for your target Forgejo version before planning.

Check your current GitLab tier, the modules your teams actually use and your upgrade calendar before treating these points as decisive.

What maps cleanly when migrating from GitLab to Forgejo

This table pairs each GitLab capability in scope for a move with its Forgejo counterpart and the migration effort it implies. Read the third column first: Maps cleanly rows need a data move and a check, while rework and confirmation rows need design decisions or a check against Forgejo's documentation for the version you run. The main takeaway is that Git repositories are the most direct part of the move, while CI pipelines, identity setup and GitLab's paid security and resilience features need separate planning.

GitLab capabilityForgejo equivalentMigration notes
Git repositories and historyGit repositories with full commit history, branches and tagsMaps cleanly. Mirror-push all refs, then verify commit counts and tags on a test copy.
Issues, merge requests and wikiIssues, pull requests and the repository wikiNeeds rework. Plan how merge request fields, labels, milestones and approvals map across. Confirm wiki format and import path for your version.
GitLab CI/CD with GitLab RunnerForgejo Actions with separate runnersNeeds rework. Forgejo Actions is not compatible with GitHub Actions, so rewrite and test every GitLab CI pipeline.
LDAP, SAML, OAuth 2.0, SCIM and Kerberos sign-inForgejo sign-in settings, to be confirmed per protocolNeeds confirmation. Check each protocol, SCIM provisioning and group mapping against your version before cutover.
Container and package registriesForgejo package features (confirm container and package formats)Needs confirmation. Inventory each image and package type, then confirm Forgejo supports it and plan re-pushing artifacts.
Security scanning and compliance (Ultimate tier)Separate scanners and evidence tooling, selected by your teamNeeds rework. GitLab Ultimate scanning and compliance features are paid, so plan separate tools and their evidence trail.
Geo warm standby (Premium and Ultimate)Your own backup and standby design, with any Forgejo replication option confirmedNeeds rework. Geo continuously syncs a secondary region, so rebuild disaster recovery around backup and restore tests.
Internal stack: Gitaly, Praefect, Sidekiq and RedisForgejo's own architecture, sized to your user count and load (confirm in its docs)Needs confirmation. These are GitLab-specific components, so drop them from the plan and size Forgejo's components and database separately.

Documented import paths for a GitLab to Forgejo migration

Each path below moves a different part of a GitLab instance into Forgejo, and none of them moves everything. Use them together: an export for project content, a backup for rollback, a mirror push for code and a manual rebuild for CI and access. Check each path against the item types your teams depend on before you commit to a cutover plan.

GitLab project and group export

GitLab's project and group import and export produces an archive of one project or one group. It is source material for a repository migration and does not produce a finished copy on Forgejo. Check each item type in the archive, such as issues, merge requests, wiki pages and CI configuration, against what Forgejo's migration tool reads. Plan for the archive to omit credentials and runner registrations, and confirm those exclusions in the export documentation for your GitLab version.

GitLab import and migrate

GitLab backup as rollback copy

A GitLab backup archive is the rollback copy for the cutover window. It is written in GitLab's own format, so Forgejo cannot read it and it cannot seed the new repositories. The restore target has to be GitLab, so the GitLab instance, its version and its configuration files must stay available until the rollback window closes. Keep the backup until the Forgejo side passes your acceptance checks, and record the GitLab version that produced it.

GitLab backup and restore

Forgejo repository migration check

Confirm whether Forgejo's repository migration can import from GitLab in the version you plan to deploy, because support can differ between releases. Test it on a representative project in a staging instance and list which item types arrive, including repository content, issues, labels, milestones, pull requests, releases and wiki pages. Do not assume merge request reviews, approvals and comment threads arrive intact, and verify each one on your test project. Record the Forgejo version you tested.

Forgejo releases

Plain git mirror push

A git push --mirror from the GitLab repository to the Forgejo repository copies every branch, tag and commit history. It carries refs and history and nothing else, so issues, merge requests, comments, CI definitions, protected branch rules and memberships stay behind. Large files tracked with Git LFS need a separate git lfs push step. After the push, set the default branch in Forgejo, confirm it, and compare ref counts against the source.

Forgejo Actions rewritten by hand

GitLab CI pipelines do not run unchanged on Forgejo Actions. Forgejo Actions is designed to be familiar to GitHub Actions users but is not compatible with GitHub Actions, so each GitLab CI job needs a workflow rewritten against the Forgejo Actions overview. GitLab Runner registrations and tags do not move, so each Forgejo runner and its labels must be set up and matched to the rewritten jobs. Secrets and CI variables also need to be recreated in Forgejo, because a project export or mirror push does not carry them.

Forgejo Actions overview

Forgejo API for people and labels

The Forgejo API can script the creation of users, teams and labels after a migration, which suits teams that cannot rely on an import to recreate them. Endpoint names, required fields and permission scopes can change between releases, so confirm each endpoint in the target version before you write the script. Users created through the API do not inherit GitLab SSO links or MFA enrollment, so identity provisioning needs its own plan with your identity provider. Compare team membership and label definitions against the source after each run.

The sequence for migrating from GitLab to Forgejo with a parallel run

The sequence moves repositories from GitLab to Forgejo in stages, so the team proves the new forge works before GitLab stops taking writes. Each step produces a dated record, such as an inventory, a pilot report or a signed cutover checklist, and names who approves it. Teams that skip the parallel run usually find permission and pipeline gaps during cutover, when rollback is hardest.

  1. Inventory the GitLab estate and upgrade position

    The platform team lists every group, project, user, runner, pipeline, webhook, deploy key, integration and GitLab feature in use, then marks any feature with no Forgejo equivalent, including features tied to paid GitLab tiers. Record the exact running GitLab version and map the required upgrade stops from the GitLab upgrade paths documentation before any migration work starts. Older instances must pass through each stop, and the current maintained releases are 19.5, 19.4 and 19.3. Output: a signed inventory workbook with a gap list. Sign-off: the head of platform engineering for the gap list and the security lead for access data.

  2. Pilot on a non-production Forgejo instance

    Stand up a non-production Forgejo instance inside your own environment and choose the release line to standardize on. Forgejo v17.0.0 is supported until January 28, 2027, and v15 is the LTS line supported until July 15, 2027, so confirm which window fits your change calendar. Migrate representative projects that cover large histories, LFS use, nested groups, protected branches and one pipeline per language. Check metadata, permissions, pipelines and sign-in through your identity provider. Confirm with Forgejo which migration method carries each object type, because issues, merge requests and CI variables may not arrive unchanged. Output: a pilot report listing each mismatch and its fix. Sign-off: the service owner and the security reviewer.

  3. Run both forges with one system of record

    Keep GitLab and Forgejo running together for the period agreed in the plan. For every repository, name one system of record in the migration register. The other side follows the write-freeze rule: no pushes, settings changes or merges there for that repository. Sync content on the schedule agreed in the plan and compare commits and tags after each sync. Run pipelines only on the owning side, and test Forgejo runners against representative jobs. Pipelines written for GitLab CI will need rewriting as Forgejo Actions workflows, which are designed for GitHub Actions users but are not compatible with GitHub Actions. Output: a sync log with every unexplained difference resolved. Sign-off: the engineering lead of each team that owns repositories.

  4. Cut over behind a GitLab write freeze

    Freeze writes in GitLab for each migrating group at an agreed time and announce the window to developers. Run a final sync so Forgejo matches GitLab's last commits, tags and open items. Then move the remaining pieces: register Forgejo runners, update remote URLs in developer clones and CI scripts, recreate webhooks and deploy keys, and update any package or container registry references. Keep a written rollback path: GitLab stays intact and can be unfrozen if a blocking defect appears, and the team reverts remotes to match. Output: a signed cutover checklist with timestamps. Sign-off: the service owner, the security reviewer and the change board.

  5. Decommission GitLab after the retention window

    After the retention window agreed in writing with stakeholders and any auditors, set GitLab to read-only and keep it available for lookups. Archive backups in storage the team controls, and test the restore procedure from GitLab's backup and restore documentation before anything is removed. Revoke GitLab runners, tokens, deploy keys and SSO application registrations only after the read-only period ends. Output: a decommission record listing what was archived, where it is stored and who holds the keys. Sign-off: the data owner and the CISO's delegate, with records retention reviewed by compliance.

How the phases and go or no-go decisions connect

The flow starts with an inventory of every GitLab feature the team uses, including CI pipelines, runners, permissions and integrations. The first check asks whether any GitLab-only feature in use lacks a confirmed Forgejo path. If so, that workload is replaced, reworked or kept on GitLab before the pilot begins. The pilot import then faces a second check on metadata and pipeline behavior. A failed check sends the team back to close the gap and re-pilot, so no data moves forward on an unverified import. A passing pilot leads to a parallel run and then cutover. If cutover shows a problem, the team rolls back to GitLab, and only a stable cutover leads to decommissioning.

Phases run in order, with two decision gates before parallel run.

What drives the cost and duration of moving from GitLab to Forgejo

This table lists the drivers that set the size and timing of a GitLab to Forgejo move, with the question to put to each quote. Read the second column for why a driver changes the work and the third for what to request. Migration labor is one-time, while hosting, upgrades, runners and any support contract recur, so ask each quote to price those lines separately and name who is paid for each.

DriverWhy it changes the workWhat to ask for in a quote
Project count and history depthEach project brings issues, merge requests, LFS objects and CI history that must be imported and checked separately.Price per object type, a trial import of your largest project, and a list of what the import does not carry.
CI pipelines and runnersForgejo Actions is not compatible with GitHub Actions, so GitLab pipelines need rewriting and runners re-registered.Pipeline count by type, runner count and OS, and whether the quote covers rewriting, runner setup and running old and new pipelines in parallel.
GitLab-only features in useEach GitLab feature you rely on, such as Geo replication or Ultimate security scanning, needs a named replacement or an accepted gap.A feature inventory from your admin team, the replacement or gap for each item, and fees for any paid tool that replaces it.
Identity and SCIM provisioningGitLab Self-Managed supports LDAP, SAML, OAuth 2.0 and SCIM, so each SSO and provisioning link must be rebuilt and retested on Forgejo.Written confirmation of which SSO and provisioning methods Forgejo supports for your IdP, plus the group mapping work.
User count and API loadGitLab's reference architectures span 1,000 users at 20 API requests per second to 50,000 at 1,000, with HA generally advised from 3,000 users.A sizing for your user count and peak API load on Forgejo, plus the load test evidence behind it.
Target Forgejo topology and high availabilitySingle node, VM cluster or Kubernetes changes the database, storage, backup and failover work, and each needs its own build and test.The proposed topology, the database and storage design, failover test results and who operates it after cutover.
Air-gapped constraintsOffline transfer of Forgejo packages, runner images and CI dependencies adds build and approval steps before any data moves.Offline install steps for Forgejo and runners, the artifact list, and who approves each transfer into the network.
Current GitLab version and upgrade stopsSince GitLab 17.5, upgrades must pass required stops at x.2, x.5, x.8 and x.11, so an old instance adds upgrade runs before export.The stops between your version and the export version, the upgrade test plan, and whether upgrades are in the quote or priced separately.
Forgejo LTS or stable window covering cutoverForgejo v15 LTS runs to July 15, 2027 and v17.0.0 to January 28, 2027, so the target line must still be supported at go-live.Which Forgejo release the quote targets, its support end date, and the plan if go-live slips past it.

What usually goes wrong in a GitLab to Forgejo move and how to prevent it

The same few failures recur in GitLab to Forgejo moves, and most of them stay hidden until a cutover date is set. Each card names one failure, why it happens, and a check the team can run during the pilot before committing to a date.

Metadata and access mapping gaps

Imported issues, merge requests and permissions can arrive partly complete. Labels, milestones, attachments, wiki pages, and the way GitLab groups, subgroups and member roles map onto Forgejo organizations and teams are the usual gaps. Pick three repositories with long histories and one nested group, run the import, and compare counts, attachments and access for each role against a written list. Confirm which fields the importer drops before anyone relies on the result.

Pipelines fail after Actions conversion

A GitLab CI file that looks correct can still fail at runtime once it runs as Forgejo Actions. Forgejo Actions is designed to feel familiar to GitHub Actions users but is not compatible with GitHub Actions, so workflow syntax, runner labels, container images, secrets and artifact handling need checking job by job. Run each converted pipeline on a Forgejo runner with the same inputs as production, and record every job that passes a syntax check but fails when it executes.

Forgejo Actions overview

Writes land in two systems

During a parallel run, developers keep pushing and reviewing in GitLab while the Forgejo copy also accepts changes, and the two histories diverge quickly. Decide which system is the record for each repository, when that changes, and how a change made in the other system is reconciled or reversed. Test the rule in the pilot by making a commit, an issue update and a review in each system, then checking that every engineer knows where the authoritative copy lives. Write the freeze and reconciliation steps into the cutover plan before the parallel run starts.

Forgejo version support window

Forgejo v17.0.0 is supported until January 28, 2027, while v15 is the LTS release supported until July 15, 2027. A cutover planned around a short-lived stable release can leave little time before its support ends. Per the Forgejo upgrade documentation, stable releases get full support for three months plus a two-week window, so pick the release line before the pilot starts, record its end date, and schedule the first upgrade inside that window. Ask who will apply security fixes after the cutover date.

Forgejo releases

GitLab-only features surface late

Features the team uses without naming them are the ones that break after cutover. Examples include Geo disaster recovery, SCIM user provisioning, and the advanced CI/CD, security scanning and compliance features listed on GitLab's pricing page by tier. Ask each team to list the GitLab features it touches each week, mark which have a Forgejo equivalent, and decide in writing what happens to the rest before the pilot ends.

GitLab pricing

Federation does not cover private code

Forgejo federation is experimental and still under active development, built on the ForgeFed protocol over ActivityPub. Teams that plan to share private repositories across organizations or sites through federation are planning around a feature that is still experimental. Treat private code sharing as a question for access control and replication instead, and confirm during the pilot which mechanism carries each repository. Check the Forgejo FAQ for the current status before writing federation into the design.

Forgejo FAQ

What buyers ask before moving from GitLab to Forgejo

How much does moving from GitLab to Forgejo cost?

Forgejo is licensed GPL-3.0-or-later from v9.0 onward, so it has no per-user licence fee. The move cost is staff time, hosting, runners and any support contract. For licence comparison only, the GitLab pricing page lists Premium at 29 US dollars per user per month billed annually, a recurring fee that Forgejo does not add. One-time costs cover planning, export and import work, pipeline translation, testing and cutover. Recurring costs cover hosting, backups, upgrades, runner capacity and any support retainer. Costs rise with repository count, issue and merge request volume, pipelines to rewrite, identity integration and high availability or disaster recovery needs. To compare quotes, ask for the written scope, project and user counts, data volumes, pipeline count, identity provider, target environment, and which items are one-time or retained. Ask, too, for the internal staff hours on your side, since those are paid either way.

How long does a GitLab to Forgejo migration take?

Duration depends on scope and data volume, so no generic figure applies. The main drivers are the number of projects and groups, total repository and attachment size, how many issues and merge requests must carry over, how many CI pipelines need rewriting for Forgejo Actions, and how many integrations, SSO settings and runners must be rebuilt. Teams with many forks, long-lived branches or strict change freezes usually need more planning time. Plan a pilot with a small set of projects, a parallel period in which both systems run while teams check data, and a short freeze at final cutover. Ask for a written timeline with milestones for inventory, pilot, pipeline conversion, trial cutover, final cutover and a rollback point. Pick a Forgejo release whose support window covers go-live and the period after it.

What does our team need to provide for a GitLab to Forgejo move?

The team supplies access, an inventory, the target environment, identity details, data decisions and named owners. Most engagements are fixed-scope, so the list is agreed in writing before work starts. Typical inputs include:

  • Administrator access to GitLab for exports, user and group mapping, and project settings review
  • An inventory of projects, groups, users, integrations, runners and CI/CD settings, with an owner for each
  • The target hosting environment, network paths, certificates, DNS and backup storage
  • Identity provider details and the access model you want in Forgejo
  • Decisions on what history, issues, attachments and archived projects must move, and what can be retired
  • Named staff for testing, approvals and the cutover window
Can an in-house team migrate from GitLab to Forgejo alone?

Yes, an in-house team can run the move alone if it already operates Linux servers, Git hosting, backups and CI runners, and has someone who can test data and cutover. The import is one part of the work. The rest covers hardening, backups, upgrades, identity integration, runner management and the documentation compliance reviewers ask for. Check three gaps before deciding: whether anyone has run a Git forge in production, whether the team can test a restore and a rollback, and who owns the upgrade calendar after go-live. If a gap exists, a fixed-scope engagement can cover only the parts you choose. DeployOpen plans, implements, integrates, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own infrastructure, and the written scope sets which tasks it takes and which stay with your staff.

Do issues, merge requests and history transfer intact from GitLab to Forgejo?

Git history usually moves intact, while issues, merge requests and their metadata need field-by-field checks. Commits, branches and tags are plain Git data, so a complete mirror should carry them. Forgejo calls merge requests pull requests, and the mapping for comments, labels, milestones, reviewers, approvals, attachments and links between issues and merge requests depends on the import tool and version. Check CI artifacts, package and container registries, wiki content and release notes too, since a repository copy alone can miss them. Run a test import, produce a mapping report, and compare record counts and sample items in both systems before cutover. Take a full GitLab backup before any export, following the GitLab backup and restore documentation.

Which Forgejo version should we target for a GitLab migration?

Target the LTS line for a production move, and confirm the current release on the day you decide. Forgejo v15 is the LTS release supported until July 15, 2027, while v17.0.0, released on October 15, 2026, is supported until January 28, 2027, according to the Forgejo releases page. Stable releases receive full support for three months plus a two-week window, while LTS releases receive critical bugfixes and security support for one year and three months, according to the Forgejo upgrade documentation. A longer window gives your team room to finish the migration, test upgrades and schedule the next step without rushing. Confirm that the migration tooling and Forgejo Actions behaviour you plan to use are documented for that version. New releases and patch levels appear regularly, so check the Forgejo releases page before you commit.

How DeployOpen scopes and delivers a GitLab to Forgejo migration

DeployOpen approaches a GitLab to Forgejo move as a fixed-scope engagement: the scope, deliverables and timeline are agreed in writing before any work starts. The work runs inside your own infrastructure, covering the Forgejo deployment, the migration of repositories and configuration, the cutover plan and the documentation your team needs to run it afterward. Ongoing upgrades and support can follow under a retainer.

How we scope

  • The written scope lists which GitLab projects, groups, CI pipelines and users move to Forgejo.
  • We inventory integrations, such as CI runners, container registries, webhooks and SSO, before any cutover date is set.
  • Deliverables, timelines and out-of-scope items are agreed in writing, and a quote follows from that scope.

How we build

  • We deploy Forgejo inside your own cloud accounts, data centers or air-gapped networks.
  • We map GitLab groups and permissions to Forgejo organizations and teams, then verify access with test accounts.
  • We convert GitLab CI pipelines to Forgejo Actions workflows, testing each job on the runners your team operates.

How we hand over

  • We document the target architecture, backup and restore steps, runbooks and the cutover record in writing.
  • Before cutover we run a restore test and confirm which GitLab objects the chosen import path carries over.
  • Handover documents are delivered as agreed in the written scope, so acceptance criteria are known up front.

How we support

  • After the migration, ongoing support and upgrades are available as a retainer, with scope agreed in writing.
  • Pick the Forgejo release line before cutover, since LTS support runs longer than stable support.
  • Continuous security testing of the Forgejo instance is available as a retainer.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.