G

8 best free & open-source GitHub alternatives

8 free Git code hosting apps to use instead of GitHub by Microsoft

The best free alternative to GitHub is Gitea. Light and quick to install, with a familiar GitHub-style UI, pull requests, issues, a wiki and compatible Actions.

Other great options: Gogs, GitLab, OneDev, Sturdy, Pagure, Cloudogu EcoSystem and Codeberg.

Quick pick: Want something light to self-host with a GitHub-like interface: Gitea. Need full CI/CD and project management for a whole company: GitLab. Rather not self-host: Codeberg.

Reviewed November 2026 against each vendor's official website.

Quick comparison: 8 GitHub alternatives

#AppTypePlatformsEase of useGitHub stars
1GiteaOpen sourceSelf-hosted, Windows, Mac, LinuxTechnical setup59,361
2GogsOpen sourceSelf-hosted, Windows, Mac, LinuxTechnical setup48,015
3GitLabOpen sourceWeb, Self-hostedSome learning curve—
4OneDevOpen sourceSelf-hostedTechnical setup15,385
5SturdySource availableWindows, Mac, Linux, Self-hostedTechnical setup550
6PagureOpen sourceSelf-hostedTechnical setup228
7Cloudogu EcoSystemOpen sourceSelf-hostedTechnical setup53
8CodebergOpen sourceWeb, Self-hostedSome learning curve21

Open source: anyone can use, study and modify it, including businesses. Free: no cost, but the code is closed. Freemium: a lasting free plan with paid tiers for extra features. Source available: code is public but the license adds conditions.

8 best alternatives to GitHub

1Gitea

Gitea

Developer & DevOpsHealthGood (90/100)59,361
Open sourceTechnical setup
Gitea homepage

Light and quick to install, with a familiar GitHub-style UI, pull requests, issues, a wiki and compatible Actions.

A lightweight self-hosted Git server with a GitHub-like interface. It covers code hosting, review, issues, packages and CI/CD.

  • Very light, runs on small servers and Raspberry Pi
  • Single binary, quick to install
  • Gitea Actions is largely compatible with GitHub Actions

Platforms: Self-hosted · Windows · Mac · Linux

2Gogs

Gogs

Developer & DevOpsHealthGood (95/100)48,015
Open sourceTechnical setup
Gogs homepage

A very light self-hosted Git service that runs on modest hardware, with fewer features than Gitea.

An ultra-light self-hosted Git server written in Go. Enough for small teams that want private repos instead of GitHub or Bitbucket.

  • Extremely light, runs on a Raspberry Pi
  • Single binary, very quick install

Platforms: Self-hosted · Windows · Mac · Linux

3GitLab

GitLab

Developer & DevOps
Open sourceSome learning curve
GitLab homepage

A complete platform with repos, CI/CD, issue tracking and registries, for companies self-hosting instead of GitHub.

An all-in-one DevOps platform: Git hosting, code review, CI/CD and issue tracking. An alternative to GitHub and Bitbucket.

  • Self-hosted Community Edition is free with unlimited users
  • Built-in CI/CD
  • Also available hosted at gitlab.com

Platforms: Web · Self-hosted

4OneDev

OneDev

Developer & DevOpsHealthGood (100/100)15,385
Open sourceTechnical setup
OneDev homepage

Built-in CI/CD, issue tracking and code search in one self-hosted package, configured through the UI.

A self-hosted Git server bundling repositories, CI/CD, issue tracking, package registry and code review. A GitHub or Bitbucket alternative for teams keeping code in-house.

  • Git, CI/CD, kanban boards and wiki in one package
  • Smart code search and navigation
  • Quick Docker install, MIT licensed

Platforms: Self-hosted

5Sturdy

Sturdy

Developer & DevOpsHealthWeak (27/100)550
Source availableTechnical setup

An experiment in real-time version control; the project is no longer developed, so it is mostly of reference interest.

A real-time version control platform that works on top of Git with fewer commits and branches to juggle. It had a desktop app and a self-hosted edition.

  • Changes sync continuously, so you can see what teammates are working on
  • Works with existing Git repos and GitHub
  • Self-hostable with Docker

Platforms: Windows · Mac · Linux · Self-hosted

6Pagure

Pagure

Developer & DevOpsHealthWeak (50/100)228
Open sourceTechnical setup
Pagure homepage

A lightweight Git-centered forge used by the Fedora community, for teams that want minimalism.

A lightweight Git forge written in Python with pull requests, issues and wikis. The Fedora Project uses it to host code.

  • Light, with issues, pull requests and docs repos
  • Issues and pull requests are stored in Git, easy to migrate
  • Self-hostable, GPL-2.0 license

Platforms: Self-hosted

Open sourceTechnical setup
Cloudogu EcoSystem homepage

Bundles many development tools (Git, CI, wiki and more) on one self-hosted platform for businesses.

A platform that packages code hosting, CI, issue tracking and wikis as ready-made Docker containers. It runs on your own server.

  • Install tools like Jenkins, SonarQube and Redmine as prebuilt packages
  • Single sign-on across all tools
  • Fully self-hosted, AGPL-3.0 license

Platforms: Self-hosted

8Codeberg

Codeberg

Developer & DevOpsHealthWeak (23/100)21
Open sourceSome learning curve
Codeberg homepage

A non-profit code hosting service based in Europe, free for open source projects, with nothing to self-host.

A free Git hosting service run by a German nonprofit, offering a GitHub alternative for open-source projects.

  • Free, ad-free and nonprofit
  • Issues, pull requests, wikis and static pages
  • The underlying software (Forgejo, a Gitea fork) can be self-hosted

Platforms: Web · Self-hosted

Related paid software See category →

FAQ

What is the best free alternative to GitHub?

The most popular picks are Gitea, Gogs, GitLab and OneDev. Want something light to self-host with a GitHub-like interface: Gitea. Need full CI/CD and project management for a whole company: GitLab. Rather not self-host: Codeberg.

Is there an open-source alternative to GitHub?

Yes. Gitea (MIT), Gogs (MIT), GitLab (MIT) and OneDev (MIT) are open source: free to use, including at work, and the code is public so the community can keep it going.

Is there a free version of GitHub?

GitHub's Free plan includes unlimited public and private repositories plus a monthly allowance of GitHub Actions minutes.

Does moving a repo from GitHub to Gitea keep issues and pull requests?

Yes. Gitea has a migration feature for GitHub that brings over code, issues, pull requests, labels and milestones. GitLab has a similar importer.

Does self-hosting Gitea need a powerful server?

No. A small VPS with a few hundred MB of RAM is enough for a small team. GitLab is much heavier, so plan for several GB of RAM.

Free Dorabot tools