Start with collaboration shape
A public open-source library needs discoverability, forks, discussions, and contribution flows. A private product team usually cares more about permissions, branch rules, review velocity, and auditability.
Code hosting is the control plane for source code, reviews, releases, CI/CD, packages, and team permissions. A good free plan should match your collaboration model before it maximizes raw repository count.
| PROVIDER | FREE STORAGE | MONTHLY BANDWIDTH | SPECS / COMPUTE | CONNECTION LIMITS | KEY CONSTRAINTS | ACTION |
|---|---|---|---|---|---|---|
GitHubGLOBAL OPEN-SOURCE DEFAULT | Unlimited Repositories | GitHub Free: 500MB storage / 1GB transfer for Packages; data transfer resets monthly | Hosted source control, pull requests, Actions, Packages, and an ecosystem built around collaborative development | Unlimited public/private repositories; collaboration at organization scale | Git LFS and private package transfer/storage are metered separately; usage blocks when quota is exhausted without a payment method | Go to Site ↗ |
GitLabDEVSECOPS SUITE | 10 GiB Storage | 400 compute minutes per month | Source Code Management and CI/CD on the Free tier; includes 5 licensed users and GitLab.com project storage | 5 licensed users on Free tier | Free plan caps at 5 licensed users and 400 compute minutes, with additional storage/minutes sold as add-ons | Go to Site ↗ |
Bitbucket CloudATLASSIAN CODE WORKSPACE | 1 GB Workspace Storage | 50 build minutes per month | Unlimited private repositories, deployment environments, code insights, and CI/CD hooks for small teams | Up to 5 users on Free plan | Free forever is limited to 5 users; extra build minutes and Git LFS bandwidth are billed separately | Go to Site ↗ |
GiteeCHINA REGION GIT HOSTING | Public and private repositories | Repository hosting with code review, issue tracking, and CI/CD integration | Chinese Git hosting platform for repositories, collaboration, and DevOps workflows | Team and enterprise collaboration with self-managed project organization | China-local code hosting option; availability and quotas depend on the current product plan | Go to Site ↗ |
Azure DevOps ServicesCLOUD REPOS + PIPELINES | Unlimited Private Repos | Azure Boards, Pipelines, Test Plans, and Artifacts under one cloud-hosted DevOps workspace | Cloud-hosted private Git repositories with pull requests, branch policies, and native CI/CD integration | Flexible team sizing via Azure account and per-service licensing | Hosted on dev.azure.com; product is best treated as an integrated DevOps workspace rather than a pure Git host | Go to Site ↗ |
Alibaba Cloud CodeupCHINA REGION GIT HOSTING | Enterprise Git Repos | Alibaba Cloud DevOps workspace with repositories, code review, and CI/CD integration | Alibaba Cloud source code hosting for Chinese teams, with repository management and collaboration workflows | Cloud-native project and organization collaboration model | China-region product entry; pricing and limits are better verified from the current local console / official product page | Go to Site ↗ |
GiteaSELF-HOSTED GIT SERVICE | Unlimited Users / Repositories | Depends on your own server capacity | Lightweight self-hosted Git service with code hosting, issue tracking, pull requests, project management, packages, and Actions | Runs comfortably on 2 CPU cores and 1GB RAM for small teams | You own the infrastructure and maintenance; hosted usage is not a free SaaS quota but a self-managed deployment choice | Go to Site ↗ |
CodebergNON-PROFIT COMMUNITY HOSTING | Unlimited Repositories | Hosted in Europe with Pages, Translate, and Woodpecker CI services | Community-led Forgejo hosting for free software projects, plus Pages and collaborative tooling | Community-driven, donation-supported infrastructure | Free as in freedom, not as in beer; service sustainability depends on community support and donations | Go to Site ↗ |
Choose GitHub when ecosystem reach, public collaboration, issue templates, pull requests, Actions, and integrations matter more than maximum free storage.
Choose GitLab when code hosting, CI/CD, container registry, security scans, and project planning should live in one product surface.
Choose Bitbucket when the team already runs Jira and Confluence, and private repositories for a small team are the primary need.
Choose Gitea when data location, private network deployment, low resource usage, and operational control are more important than SaaS convenience.
A public open-source library needs discoverability, forks, discussions, and contribution flows. A private product team usually cares more about permissions, branch rules, review velocity, and auditability.
Source code is usually small, but Git LFS, release assets, build artifacts, packages, and container images can hit separate quotas quickly.
Repository hosting is rarely isolated. Before moving code, verify pipeline minutes, secret management, deployment integrations, cache behavior, and runner options.
Small teams can start with simple invites, but production teams should know how SSO, organization ownership, 2FA, access reviews, and employee offboarding work.
Many platforms allow unlimited repositories but limit users, licensed seats, organizations, branch protections, or advanced review controls on free plans.
Large binaries make clones slow forever. Use Git LFS, package registries, object storage, or release assets with clear retention rules.
Secret scanning and branch rules help, but teams still need environment separation, scoped tokens, rotation practices, and review discipline.
Git history is portable, but issues, pull request discussions, wiki pages, packages, and CI logs may not migrate cleanly.
Use GitHub or Codeberg for public visibility, contributor onboarding, issue templates, releases, and documentation pages.
Use GitHub, GitLab, Bitbucket, or Azure DevOps with required reviews, protected branches, CI checks, and deployment environments.
Use Gitee or Alibaba Cloud Codeup when domestic access speed, local compliance, and Chinese-language operations support are important.
Compare free pipeline minutes, hosted runners, and deployment automation connected to your repositories.
Source code often produces packages and container images that need separate storage, permissions, and retention policies.
Browser-based workspaces can turn repositories into ready-to-code environments for contributors and contractors.
GitHub is usually the safest default for open source because of discovery, forks, Actions, issues, releases, and the contributor ecosystem. Codeberg is attractive when community-owned infrastructure and free software values matter more.
Compare seats, branch protection, required reviews, CI/CD minutes, package storage, Git LFS, audit logs, SSO, organization ownership, and how easy it is to remove access when people leave.
The software is free and lightweight, but hosting is not zero-cost. You still pay for a server, backups, upgrades, monitoring, security patches, and operational time.
Usually no. Keep Git history focused on source code. Put large binaries in Git LFS, release assets, package registries, container registries, or object storage depending on how they are consumed.
The Git repository itself is easy to move, but issues, pull request reviews, discussions, wiki pages, packages, CI logs, branch rules, and permissions may require manual migration planning.