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.
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.
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.
Official ways to use GitHub for free
GitHub's Free plan includes unlimited public and private repositories plus a monthly allowance of GitHub Actions minutes.
Free plans and trial lengths are set by the vendor and can change. Check the official website before signing up.
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.
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
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.