18 alternatives to GitHub

GitHub is a Software Development product. The community recommends 18 alternatives: 14 open source, 15 self-hostable and 14 free to use. They are ranked by community votes, ratings and favorites, with the key differences from GitHub highlighted.

Last updated:

G

About GitHub

Git hosting and developer collaboration platform with pull requests, issues, Actions CI/CD, packages and Copilot.

Closed source
Not self-hostable
Freemium
Web
Windows
macOS
iOS
Android

Quick picks

Forgejo logo

Best open-source pick

Forgejo

Open source, MIT license

Forgejo logo

Best self-hosted pick

Forgejo

Run it on your own server

Forgejo logo

Best free pick

Forgejo

Free to use

HexHub logo

Most platforms

HexHub

Available on macOS, Windows, and Linux

All alternatives

  1. 0
    1.

    Forgejo

    Software Development

    A lightweight software forge focused on scaling, federation, and privacy (fork of Gitea).

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  2. 0
    2.

    gitbucket

    Software Development

    Git platform powered with easy installation, high extensibility & GitHub API compatibility (alternative to GitHub).

    Open source · Apache-2.0
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  3. 0
    3.

    Gitea

    Code Hosting

    A lightweight self-hosted Git service, similar to GitHub or GitLab but with a much smaller resource footprint.

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  4. 0
    4.

    GitLab

    Code Hosting

    Enterprise-grade self-hosted Git service offering a complete DevOps platform

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  5. 0
    5.

    Gogs

    Software Development

    Painless self-hosted Git Service written in Go.

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  6. 0
    6.

    Mergeable

    Software Development

    The missing inbox for GitHub pull requests

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  7. 0
    7.

    minimal-git-server

    Software Development

    Lightweight git server with a basic CLI to manage repositories, supporting multiple accounts and running in a container.

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  8. 0
    8.

    OneDev

    Software Development

    All-In-One DevOps Platform. With Git Management, Issue Tracking, and CI/CD. Simple yet Powerful.

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  9. 0
    9.

    OpenGist

    Cloud Clipboard

    A self-hosted, Git-powered code snippet sharing platform, an open-source alternative to GitHub Gist

    Open source · AGPL-3.0
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  10. 0
    10.

    Pagure

    Software Development

    A lightweight, powerful, and flexible git-centric forge with features laying the foundation for federated and decentralized development.

    Open source · GPL-2.0
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  11. 0
    11.

    rgit

    Software Development

    An ultra-fast & lightweight cgit clone.

    Open source · WTFPL
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  12. 0
    12.

    SCM Manager

    Software Development

    The easiest way to share and manage your Git, Mercurial and Subversion repositories over http.

    Open source · BSD-3-Clause
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  13. 0
    13.

    Sourcehut

    Software Development

    A full web git interface with no javascript.

    Open source · GPL-2.0
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  14. 0
    14.

    walgit

    File Transfer

    walgit is a single-binary Git server that stores repository data in an object store instead of a local database or shared filesystem.

    Open source · MIT
    Self-hostable

    Compared with GitHub

    • + Open source (GitHub is not)
    • + Self-hostable (GitHub is not)
    • + Free to use (GitHub is paid)
  15. 0
    15.

    Harness

    Code Hosting

    An enterprise-grade continuous delivery platform that offers a complete DevOps solution

  16. 0
    16.

    Buddy Enterprise

    Software Development

    Git and Continuous Integration/Delivery Platform.

    Self-hostable

    Compared with GitHub

    • + Self-hostable (GitHub is not)
  17. 0
    17.

    Gitolite

    Software Development

    Setup git hosting on a central server, with fine-grained access control and many more powerful features.

  18. 0
    18.

    HexHub

    Software Development

    HexHub is an all-in-one development and operations toolkit built for programmers and ops engineers

    macOS
    Windows
    Linux

    Compared with GitHub

    • + Also on Linux
    • − Not on Web, iOS, and Android

GitHub vs. alternatives

ServiceOpen sourceSelf-hostedLicensePricingPlatformsRatingVotes
GitHub
Current
NoNoproprietaryFreemiumWeb / Windows / macOS / iOS / Android——
ForgejoYesYesMIT———0
gitbucketYesYesApache-2.0———0
GiteaYesYesMIT———0
GitLabYesYesMIT———0
GogsYesYesMIT———0
MergeableYesYesMIT———0
minimal-git-serverYesYesMIT———0
OneDevYesYesMIT———0
OpenGistYesYesAGPL-3.0———0
PagureYesYesGPL-2.0———0
rgitYesYesWTFPL———0
SCM ManagerYesYesBSD-3-Clause———0
SourcehutYesYesGPL-2.0———0
walgitYesYesMIT———0
HarnessNoNo————0
Buddy EnterpriseNoYesproprietary———0
GitoliteNoNo————0
HexHubNoNo——macOS / Windows / Linux—0

FAQ

What is the best alternative to GitHub?

Community-recommended alternatives to GitHub include Forgejo, gitbucket, Gitea, GitLab, Gogs, and Mergeable. Compare open source, self-hosting, pricing and platforms to choose.

Is there a free alternative to GitHub?

Yes. Forgejo, gitbucket, Gitea, GitLab, Gogs, and Mergeable can be used for free; the open-source, self-hostable ones can be run on your own server at no cost.

Is there an open-source alternative to GitHub?

Yes. Open-source alternatives include Forgejo, gitbucket, Gitea, GitLab, Gogs, and Mergeable.

Can I self-host an alternative to GitHub?

Yes. Forgejo, gitbucket, Gitea, GitLab, Gogs, and Mergeable can run on your own server, so you keep control of your data.

Which GitHub alternatives work on Windows?

HexHub support Windows.

Which GitHub alternatives work on macOS?

HexHub support macOS.

Services in the same category that haven't been suggested as GitHub alternatives yet. If one fits, add it as an alternative.

  • Claude Code logo
    Claude Code

    Claude Code is an AI coding assistant from Anthropic. It works as an agent in your command-line terminal (CLI) and helps developers complete complex programming tasks through natural-language instructions.

  • CC
    Claude Code Templates

    Claude Code Templates is a CLI tool for configuring and monitoring Claude Code - quickly set up any project with framework-specific commands, a mobile-first chat interface, and a real-time monitoring dashboard.

    Open source
    Self-hostable
  • M
    Muxy

    Muxy is a native macOS terminal optimized for coding agents.

  • Longshot logo
    Longshot

    Longshot is a screenshot tool with OCR, on-screen measuring, pinned images, screen recording, and a color picker. Scrolling screenshots, step annotations, mosaic, highlighting: get creative with your screen!

  • L
    Listenhub

    Listenhub is an AI-powered platform that converts text to speech, enabling users to listen to articles, documents, and more as audio content.

  • RC
    Remote Code

    Remote Code is a cloud-based development environment platform that lets developers write, run, and debug code in the browser without installing any software locally.

Know another GitHub alternative?

Once added, the community can vote and the best suggestions rise to the top.