Self-Hosted Git in 2026: Gitea vs Forgejo vs GitLab CE Compared

Choosing self-hosted git in 2026 means choosing who controls your code history, your CI runners and your upgrade path. Gitea, Forgejo and GitLab CE all host repositories, issues and pull or merge requests, but they differ sharply on licences, governance and server size. This guide compares them from official project documentation so you can pick a self-hosted git forge you can still operate in three years.

Last verified: 2 December 2026, against the official Forgejo, Gitea and GitLab documentation listed in Sources. Prices for paid tiers change often, so this guide omits price amounts and tells you what to verify on each vendor page before budgeting.

In this guide

Quick picks for self-hosted git

Start with the self-hosted git shortlist, then read the trade-offs. No forge wins on every row, and the right answer depends on whether you value permissive licensing, non-profit governance or an all-in-one platform most.

Forge Best for Licence position checked 2 Dec 2026 Watch out for
Gitea Small teams that want a familiar GitHub-style workflow with a vendor-backed option MIT licence text for the open-source code Separate Enterprise features; verify which features need a paid licence
Forgejo Teams that want community governance under a non-profit GPL v3 or later from v9.0; MIT up to v8.0 Windows server support was dropped in 2024
GitLab CE / Self-Managed Free Teams that want repositories, CI/CD and planning in one larger platform Offered in Free, Premium and Ultimate tiers; verify current edition terms Largest server baseline of the three

If you are still deciding where any self-hosted tool should run, compare shared vs VPS vs dedicated hosting first. A forge needs reliable storage, backups and HTTPS, not just a cheap first month.

How these forges were compared

We checked official self-hosted git documentation and project pages first: Forgejo FAQ and Actions reference, Gitea configuration and Enterprise installation docs, and GitLab installation requirements. Licence claims were checked against project licence statements, not blog roundups. Hardware claims distinguish a documented baseline from a blog estimate.

Three rules shaped the verdicts. First, a feature counts only if current docs describe it. Second, Forgejo’s own comparison with Gitea is treated as Forgejo’s account, not neutral proof about Gitea. Third, paid-tier prices are omitted because they change; verify them on the vendor pricing page on the day you budget.

For broader context, see our open-source tools for developers guide, which covers backends, deployment tools and monitoring that often sit beside a forge.

Licences and governance

Licence and governance decide who can change the rules for your self-hosted git forge later. Daily use feels similar across Gitea and Forgejo, so this section matters more than button placement.

Gitea

Gitea’s open-source code is distributed under the MIT licence text, which permits commercial use and redistribution with the copyright notice preserved. Gitea also sells Enterprise and hosted options, so check the current feature split before assuming a needed control is in the free build. Its configuration cheat sheet shows default repository units covering code, releases, issues, pulls, wiki, projects, packages and actions, configured through app.ini or environment variables.

Forgejo

Forgejo states it was created in October 2022 and became a hard fork in early 2024. Its FAQ says governance is collectively defined by contributors, domains are in the custody of the non-profit Codeberg e.V., and no trademarks have been registered. The same FAQ states Forgejo v9.0 and later use GPL v3 or later, while versions up to v8.0 use MIT. Running unmodified Forgejo on your own server does not by itself trigger GPL distribution duties; redistributing modified versions does, so take legal advice if you ship a modified forge to customers.

Developers gathered at a free-software summit discussing community projects
Free-software developers at the Wikimedia Developer Summit 2017. Photo: © Raimond Spekking / CC BY-SA 4.0 (via Wikimedia Commons).

GitLab CE and Self-Managed tiers

GitLab Self-Managed is documented in Free, Premium and Ultimate tiers. Treat tier boundaries as a procurement check: confirm in current GitLab documentation whether the security, compliance or planning feature you need is in Free or a paid tier, and verify the current price and seat rules on GitLab’s pricing page before committing. Do not budget from old blog prices.

Server size and operations

For self-hosted git, server size is where GitLab separates from the two lighter forges. GitLab’s installation requirements set a single-node baseline of 8 vCPU and 16 GB memory, with at least 8 GB in memory-constrained environments, PostgreSQL as the only supported database, Redis or Valkey for sessions and background tasks, and object storage recommended for LFS objects, CI artifacts, uploads and backups. Storage must cover application nodes, repository storage and the database, with SSD-backed storage recommended for repository performance.

Three server stacks of increasing size for self-hosted git hosting
AI-generated illustration comparing small, medium and large server stacks for self-hosted git.

Gitea and Forgejo follow a smaller operational model centred on the forge service, its database and separate CI runners. Gitea’s Enterprise installation guide gives Enterprise hardware guidance by team size and requires an external MySQL/MariaDB or PostgreSQL database for Enterprise; do not treat those Enterprise figures as a community-edition minimum. For any self-hosted git forge, budget for off-server backups, restore tests, TLS, monitoring and upgrade time. Our cloud computing for beginners guide explains the underlying compute and storage model in plain terms.

If serverless delivery is part of your plan, read serverless computing explained before assuming a forge and a serverless platform solve the same problem. They complement each other; they do not replace each other.

CI and daily workflow

All three self-hosted git forges can run CI, but workflow compatibility needs testing. Forgejo Actions workflows live in .forgejo/workflows and use YAML jobs and steps. The Forgejo Actions reference warns that GitHub Actions and Forgejo Actions are not the same and things might not work right away, so migrate one representative workflow and test runners, secrets and permissions before moving every repository. The using Actions guide also recommends fully qualified action URLs because the default actions URL can be changed by the instance administrator.

Gitea includes actions and packages among its default repository units, which suits teams that want hosting, review, packages and CI in one service. GitLab suits teams that want pipelines, artifacts and registries managed inside one platform, provided they accept the larger operational footprint and tier checks. Whichever self-hosted git forge you choose, run CI runners with least-privilege tokens, isolate untrusted pull-request code, and keep runner capacity separate from the forge web service where possible.

Cloud credits can change first-year maths but not long-term fit. Compare AWS vs Google Cloud vs Azure for startups for credit and cost framing, then size the forge from documented requirements rather than credit headlines.

Migration and exit

Plan the exit before the entrance. Self-hosted git data moves easily; issues, permissions, CI history, packages and webhooks need deliberate migration. Forgejo documents an upgrade path from older Gitea versions and notes the hard fork in early 2024, so check the current Forgejo upgrade guidance for your exact starting version before promising an in-place move. Test with a copied instance, verify SSH and HTTPS clone URLs, and keep the old forge read-only until backups restore cleanly.

Forge federation is a reason some teams watch Forgejo, but its FAQ describes federation as experimental, with moderation and access control still under development and breaking changes possible. Do not make a production decision that depends on federation stability today. Prefer boring exports: Git mirrors, database dumps, object-storage backups and documented restore steps.

Which self-hosted git forge fits which team

Solo developers and small teams

For self-hosted git, choose Gitea or Forgejo first. Both keep operations smaller than GitLab, and the choice turns on governance: Gitea for MIT licensing and a vendor-backed path, Forgejo for non-profit custody and copyleft licensing. Start with one runner, automated backups and a restore test in the first week.

Free-software communities

For self-hosted git, Forgejo fits communities that prioritise contributor governance and public-interest stewardship. Confirm your contributors accept GPL v3 or later for current versions and Linux-based hosting, since Windows support was dropped in 2024.

Larger product organisations

For self-hosted git at scale, GitLab fits organisations that want one platform for repositories, pipelines and planning and can staff its operations. Size from the documented baseline, plan PostgreSQL and object storage properly, and verify tier features and current pricing before rollout.

FAQ

Is Forgejo a drop-in replacement for Gitea?

Not for every version. Forgejo began as a fork and became a hard fork in early 2024. Check the current upgrade guide for your Gitea version, test on a copy, and expect workflow and configuration checks.

Does self-hosting mean free?

No. The self-hosted git software licence may cost nothing, but servers, storage, backups, monitoring, email delivery and administrator time cost money. Compare total operating cost, not licence cost alone.

Can GitHub Actions workflows run unchanged?

Test each workflow. Forgejo documents similarities and differences from GitHub Actions, and action URLs, runners and permissions can change behaviour. Migrate a representative pipeline first.

What should I verify before publishing a self-hosted git forge to my team?

Verify backups restore, SSH and HTTPS cloning work, CI runners cannot access production secrets unnecessarily, registration is controlled, and upgrades are rehearsed on staging.

Conclusion

The best self-hosted git choice is the forge your team can secure, back up and upgrade without heroics. Pick Gitea for MIT licensing with a commercial path, Forgejo for non-profit governance and copyleft terms, or GitLab when one larger platform justifies its server baseline and tier checks. Decide from current official docs, test migration on a copy, and keep an exit plan from day one.

Sources

Leave a Comment