The best European alternatives to GitHub in 2026
Leave GitHub for Codeberg, a Berlin non-profit forge, or self-host GitLab CE or Gitea/Forgejo on EU servers — plus JetBrains IDEs from Amsterdam to replace VS Code.
Quick comparison
| Alternative | Best for | Based in | Free plan / trial | Our rating |
|---|---|---|---|---|
| CodebergOpen source | Best overall hosted option (free) | Germany | Completely free (non-profit) | 4.1/5 |
| GitLab CE (self-hosted)Open source | Best all-in-one DevOps platform (self-hosted) | Self-hosted (EU) | GitLab Community Edition / self-managed Free: no licence fee and no user limit — you pay only for your own servers and runners | 4.2/5 |
| Gitea (self-hosted)Open source | Best lightweight self-hosted forge | Self-hosted (EU) | Gitea open source (MIT): free, unlimited users and repositories — you pay only for your own server | 4/5 |
| JetBrains | Best for replacing VS Code | Netherlands | Free versions of IntelliJ IDEA and PyCharm (core features) | 4.5/5 |
Codeberg
Best overall hosted option (free)
A free, donation-funded Git forge run by the Berlin non-profit Codeberg e.V. on open-source Forgejo, with issues, pull requests, Pages and Woodpecker CI. The community is a fraction of GitHub's and CI is less powerful than GitHub Actions.
- Company
- Codeberg e.V. · Germany
- Free plan / trial
- Completely free (non-profit)
- Paid plans
- Free — donation-supported
- ✓ Fully open-source (Forgejo/Gitea)
- ✓ Non-profit — no corporate interests
- ✓ GDPR-compliant, EU-hosted
- ✗ Smaller community than GitHub
- ✗ Fewer CI/CD integrations
GitLab CE (self-hosted)
Best all-in-one DevOps platform (self-hosted)
The MIT-licensed GitLab Community Edition gives you Git hosting, merge requests, CI/CD, registries and SAST on your own EU server. Sovereignty comes from self-hosting: GitLab Inc. itself is a US company, so GitLab.com and paid licences are not EU options. It also needs a sizeable server and regular upgrades.
- Company
- Open-source GitLab Community Edition (MIT), self-hosted on your own EU infrastructure · Self-hosted (EU)
- Free plan / trial
- GitLab Community Edition / self-managed Free: no licence fee and no user limit — you pay only for your own servers and runners
- Paid plans
- Infrastructure only (8 vCPU / 16 GB RAM is GitLab's baseline for a single node); Premium features on self-managed require a paid licence from GitLab Inc. ($29/user/month, billed annually, as of October 2026)
- ✓ Code, CI/CD pipelines, container images and issue data stay on a server you run — no US vendor holds them
- ✓ The Community Edition is MIT-licensed open source: auditable, forkable and free of per-seat fees
- ✓ Complete DevOps platform in one application: Git hosting, merge requests, built-in CI/CD, container and package registries, wikis and issue boards
- ✗ Heavy to operate: GitLab's documented baseline for a single node is 8 vCPU and 16 GB RAM, plus PostgreSQL, backups and monthly upgrades
- ✗ Many features are paid-only: multiple approvers, push rules, audit events and protected environments need Premium; epics/roadmaps, DAST, dependency scanning and Geo need Ultimate
Gitea (self-hosted)
Best lightweight self-hosted forge
A single binary that runs a small team's Git server on 2 CPU cores and 1 GB of RAM, with GitHub Actions-compatible CI. Sovereignty comes from running it yourself; Gitea's commercial steward is a US company, so consider its non-profit fork Forgejo if project governance matters.
- Company
- Open-source Gitea project (MIT), self-hosted on your own EU infrastructure · Self-hosted (EU)
- Free plan / trial
- Gitea open source (MIT): free, unlimited users and repositories — you pay only for your own server
- Paid plans
- Infrastructure only (Gitea's docs: 2 CPU cores and 1 GB RAM is typically enough for small teams); optional Gitea Enterprise from CommitGo, Inc. at $9.5–$19/user/month with a one-year commitment (as of October 2026)
- ✓ Very lightweight: Gitea's docs say 2 CPU cores and 1 GB RAM is typically sufficient for small teams, and a Raspberry Pi 3 can handle small workloads
- ✓ A single Go binary for Linux, macOS and Windows on x86, ARM and more — quick to install and upgrade
- ✓ MIT-licensed open source: auditable, forkable, no per-seat fees
- ✗ Gitea's commercial steward, CommitGo, Inc., is not an EU company (its terms are governed by California law); the project's 2022 move to company control is why the community created Forgejo
- ✗ Some features are reserved for the paid Gitea Enterprise edition: SAML, audit logs, dependency scanning, IP allowlisting, enforced 2FA and branch-protection inheritance
JetBrains
Best for replacing VS Code
Not a code host: JetBrains replaces the editor side of Microsoft's developer stack with local-first IDEs from a European company headquartered in Amsterdam. Free versions exist for IntelliJ IDEA and PyCharm; most other IDEs need a paid subscription.
- Company
- JetBrains s.r.o. · Netherlands
- Free plan / trial
- Free versions of IntelliJ IDEA and PyCharm (core features)
- Paid plans
- Paid subscriptions per IDE or All Products Pack (current prices on jetbrains.com/store)
- ✓ Deep language-aware intelligence beyond simple autocomplete
- ✓ Built-in refactoring tools unmatched by any editor
- ✓ Integrated database tools, HTTP client, and profiler
- ✗ Paid subscription required for most IDEs
- ✗ Higher system resource usage than VS Code
Why people leave GitHub
GitHub is where most of the world’s open source lives, which makes leaving it a real decision. But it is also a Microsoft product. Microsoft bought GitHub in 2018, and in 2025 GitHub was folded into Microsoft’s CoreAI organisation after its CEO stepped down. Your repositories, issues and CI secrets sit with a US company, within reach of the CLOUD Act and FISA Section 702, and public code on GitHub has been used to train Copilot.
For many companies, source code is their most valuable intellectual property. Keeping it with a European non-profit, or on servers you run yourself, removes a dependency that is hard to justify for sensitive projects — and spreads open-source infrastructure beyond a single US platform.
How to choose
- You want hosted Git without running a server → Codeberg. Free, non-profit and run in Germany; a natural home for open-source projects.
- You have a platform team and want CI/CD, registries and security scanning in one tool → self-hosted GitLab CE.
- You’re a small team or home lab that wants something light → self-hosted Gitea, or its non-profit fork Forgejo, which also powers Codeberg.
- You also want to drop VS Code → JetBrains IDEs, which work with any Git host.
- You track work in GitHub Issues or Projects across teams → see also our European alternatives to Jira.
For self-hosting, a server at a European provider such as Hetzner or OVHcloud keeps everything under EU law; see our European alternatives to AWS.
What you give up
- Network effects: GitHub is where contributors, stars and recruiters are. Moving an open-source project can mean fewer drive-by contributions; many projects keep a read-only GitHub mirror for discovery.
- GitHub Actions marketplace: Woodpecker CI and GitLab CI are capable, but you rewrite your workflows and lose ready-made marketplace actions. Gitea Actions keeps the syntax but not the whole ecosystem.
- Copilot and AI features: none of the European options includes an equivalent built-in AI assistant.
- Zero operations: with GitLab CE or Gitea you are the operator — backups, upgrades, TLS and CI runners are your job. GitLab in particular needs a sizeable server.
- Paid features: some GitLab and Gitea features need commercial licences from their US vendors, which brings back a US contract.
How to switch
- Pick your target and create an account or install the server, with TLS and backups configured from day one.
- Import repositories with the built-in GitHub importer, including issues, pull requests, labels and milestones.
- Rewrite CI pipelines for Woodpecker CI, GitLab CI or Gitea Actions, and move secrets by hand.
- Update remotes with
git remote set-url origin <new-url>and tell collaborators where the project lives now. - Turn the GitHub repositories into mirrors or archive them, with a README pointing to the new home.
Our step-by-step GitHub to Codeberg guide walks through each step.
📘 Step-by-step migration guide
How to Migrate from GitHub to Codeberg
Open the guide →Frequently Asked Questions
What is the best European alternative to GitHub?
If you want a hosted service, Codeberg — run by the non-profit Codeberg e.V. in Berlin — is the main European option and is free. If you can run a server, self-hosting GitLab Community Edition or Gitea/Forgejo on European infrastructure gives you full control over your code.
Is there a free alternative to GitHub in Europe?
Yes. Codeberg is free and funded by donations. GitLab Community Edition, Gitea and Forgejo are free open-source software; you only pay for the server you run them on.
Can I migrate my repositories, issues and pull requests from GitHub?
Yes. Codeberg (Forgejo), GitLab and Gitea all have built-in GitHub importers that bring over repositories, issues, pull requests, labels and milestones. Your Git history moves unchanged, but GitHub Actions workflows must be rewritten for Woodpecker CI or GitLab CI; Gitea Actions uses a GitHub Actions-compatible syntax.
Why does it matter that GitHub is owned by Microsoft?
GitHub is a subsidiary of Microsoft, a US company, so code and account data on it can be requested by US authorities under the CLOUD Act and FISA Section 702. Public code on GitHub has also been used to train GitHub Copilot. Codeberg is a German non-profit, and self-hosted forges keep your code on servers you control.
Is GitLab a European company?
No. GitLab Inc. is incorporated in Delaware and based in San Francisco, even though it has a Dutch subsidiary. GitLab.com, GitLab Dedicated and paid GitLab licences are therefore US services. Only the open-source Community Edition, run on your own infrastructure, counts as a sovereign option here.
Not sure which one fits?
Answer four quick questions and get a recommendation for your situation.
Find my alternative →Ratings and facts come from our individual reviews. We are independent: no vendor can pay for a place or a higher rating. Some links are affiliate links and are marked as such. How we review
Was this helpful?