GitHub vs GitLab
Compare code review, CI/CD usage units, free access and the work involved in moving an established engineering team.
Which development workflow fits your team?
Choose GitHub when public collaboration, pull-request workflows and its connected developer ecosystem fit your team. Shortlist GitLab when you want code, pipelines and security processes in one platform with a self-managed option. For an existing estate, migration effort and required governance are more useful deciding factors than the lowest seat price.
Seven differences that change the shortlist
| Buying question | GitHub | GitLab |
|---|---|---|
| Code changes | Repositories, pull requests and reviews | Repositories, merge requests and reviews |
| Delivery automation | GitHub Actions workflows | GitLab CI/CD pipelines |
| Planning | Issues and Projects | Issues and project-management capabilities by tier |
| Hosted free access | Unlimited public/private repositories with service allowances | Free hosted access; private top-level groups limited to five users |
| Self-managed route | Enterprise Server is a paid deployment option | Free and paid self-managed tiers |
| Security purchase | Dependabot plus separately scoped advanced security services | Security tools expand across Free, Premium and Ultimate |
| AI spend | Copilot subscriptions and credit usage are separate considerations | Duo capabilities and GitLab Credits require plan-specific checks |
CI/CD usage examples and four buying briefs
These are hypothetical scenarios that hold job seconds constant to show accounting rules. They are fictional inputs, not equal-hardware benchmarks or invoice estimates. GitHub figures assume private-repository hosted jobs; GitLab uses cost factor 1 without a programme discount. GitLab fractions are displayed to six decimal places; calculate totals before rounding.
| Case / assumed seconds | GitHub minutes | GitLab compute minutes |
|---|---|---|
| Two short jobs / 20 + 20 seconds | 2 | 0.666667 |
| One short job / 40 seconds | 1 | 0.666667 |
| Two longer jobs / 61 + 119 seconds | 4 | 3 |
| One longer job / 220 seconds | 4 | 3.666667 |
Public library maintainers
Where will contributors propose changes and report bugs?
GitHub: Evaluate GitHub’s public repository and pull-request workflow against where contributors already work.
GitLab: Evaluate GitLab’s public projects and contribution process with your likely maintainers.
Use contributor access and review ownership as acceptance criteria; popularity alone does not close a release.
Private delivery team
Can the service run the current build and release pipeline?
GitHub: Inventory Actions workflows, secrets, environments and runner requirements.
GitLab: Map existing jobs to GitLab pipeline configuration and runners.
A successful build is only one check: include approval, rollback and artifact retention.
Self-managed engineering
Who will operate the platform and manage upgrades?
GitHub: Scope Enterprise Server licensing and the infrastructure team’s responsibilities.
GitLab: Choose a self-managed tier and budget for operating the application, runners and storage.
Software entitlement does not provide an internal backup, incident or upgrade owner.
Security procurement
Which controls are mandatory across private repositories?
GitHub: Check repository rules, organization controls and advanced security packages.
GitLab: Check the exact security and compliance functions in the proposed tier.
Ask for a written feature-to-requirement mapping before assuming a top-tier plan covers every security workflow.
The same minute label can describe different accounting
GitHub rounds each hosted job up to a whole minute. GitLab computes seconds divided by 60, multiplied by the applicable runner/project factor. Queueing time is excluded from GitLab’s job-duration input. Neither figure alone is a currency price.
Two fictional 20-second jobs total 40 seconds. In this model they contribute two rounded GitHub minutes and two-thirds of a GitLab compute minute. One fictional 40-second job contributes one rounded GitHub minute and the same GitLab amount. This is an arithmetic comparison; it does not establish that merging real jobs preserves duration, isolation or review controls.
Use the actual runner, repository visibility and billing owner for a real estimate. Keep allowances, storage, currency and taxes separate. A smaller usage-unit result does not establish a cheaper service.
Free repositories do not make every runner free
GitHub documents 2,000 standard-runner minutes for Free accounts and Free organisations. Standard hosted runner use in public repositories is free; larger runners remain chargeable and cannot use the included minutes.
GitLab.com Free namespaces receive 400 compute minutes monthly. Public visibility alone is not a blanket zero-compute rule. Community-programme benefits have eligibility conditions. The five-user Free limit concerns private top-level namespaces and includes users in their subgroups and projects; it is not a universal five-person limit on GitLab Self-Managed.
For your own review, identify the namespace or repository owner, actual runner and period first. Keep observed job durations, billed usage, storage and any external hosting charges distinct. The downloadable worksheet starts blank; no private invoice or CI job was accessed for this comparison.
GitHub Actions allowances ↗ · GitLab quota and project factors ↗ · GitLab Free user-limit scope ↗ · GitLab community-programme conditions ↗
Treat delivery migration as a separate workstream
The expensive part of moving a mature team is often its delivery contract: which job runs, where secrets come from, who can approve production and how a failed deployment is investigated. Export a representative release path before comparing interfaces. A repository import can preserve code while leaving these surrounding processes incomplete.
Use one low-risk service as a pilot. Require the proposed platform to build it, preserve review requirements, publish the right artifact and explain a failed run. Record configuration work and ongoing ownership alongside subscription cost. This produces evidence about your environment without claiming either platform is inherently faster.
Separate hosting, governance and variable consumption
GitHub Free and GitLab Free both offer useful ongoing access, but their hosted quotas and organizational rules differ. The GitLab.com five-user restriction applies to private top-level Free groups; it is not a general cap on every deployment. GitHub’s free repository count similarly says little about how much paid compute or storage a busy delivery process will consume.
Build the quote in layers: seats, mandatory governance, runners, stored artifacts, security products and AI usage. Then add a named operational owner for any self-managed components. If one platform already satisfies your controls, a lower headline price elsewhere needs to outweigh the transition and support work.
Questions before you choose
Is GitHub or GitLab free?
Both offer ongoing free access. Hosted resource allowances and collaboration rules differ; GitLab also offers a self-managed Free tier that requires your infrastructure.
Does either platform include unlimited CI/CD?
Hosted compute has plan allowances and possible additional charges. Self-hosted runners move work onto infrastructure you operate, which still has a real cost.
Should a team migrate just to get AI coding tools?
Compare the needed AI service and integration first. An AI subscription is a separate decision from moving repositories, release pipelines and planning history.
Which platform is more secure?
There is no universal answer from a feature list. Match mandatory controls to the exact plan, deployment and configuration, then validate them in your environment.
Are GitHub Actions minutes and GitLab compute minutes the same unit?
No. GitHub rounds hosted job time up per job; GitLab applies its duration-and-cost-factor formula. Our two fictional 20-second jobs produce two rounded GitHub minutes versus two-thirds of a GitLab compute minute at factor 1, before allowances or prices.
How much free hosted CI/CD do GitHub and GitLab include?
GitHub lists 2,000 standard-runner minutes monthly for Free accounts and Free organisations. GitLab.com Free namespaces receive 400 compute minutes monthly. Runner rules and organisational boundaries differ, so do not compare the headline numbers as equal workloads or prices.
Is hosted CI/CD always free for public repositories?
GitHub standard hosted runners are free in public repositories, but larger runners remain chargeable. GitLab uses runner and project factors; eligible community programmes have separate terms. Public visibility alone does not establish that every hosted job is free.
Why can GitLab compute usage exceed a pipeline’s elapsed time?
Jobs can run concurrently. GitLab totals their compute use across the namespace, rather than treating the pipeline’s wall-clock duration as the total. Inspect each job and its applicable factor; waiting in created or pending status is excluded from job duration.
Do GitLab subgroups each get five free users?
The private top-level namespace is the boundary. GitLab counts unique users across that group, its subgroups and projects. Splitting the same organisation into subgroups does not create a separate five-user allowance for each subgroup.
Do self-hosted runners make CI/CD cost nothing?
No. Your infrastructure, maintenance, capacity and recovery still need a budget. GitLab’s instance-runner quota does not apply to project or group runners. That quota distinction is separate from the cost of operating those runners.
Your practical evaluation pack
Download the fictional CI job ledger (CSV)
Six assumed jobs across four cases, with per-job GitHub rounded minutes and GitLab factor-1 compute units. No real workflow or invoice is represented.
Download the blank CI usage-review worksheet (CSV)
Record the owner, runner, period, real job seconds, usage, allowances and storage in an authorised account. Observed-result fields are intentionally empty.
Turn the comparison into your own evaluation
Use the same criteria and priorities for both products, keep unknowns unassessed and record the plan and evidence behind your ratings.
Build a GitHub vs GitLab scorecard →Keep the assumptions with the figures
Use the date, billing cycle, units and limits with each example. Check current account terms before purchasing. Unverified prices and model costs stay unpriced.
Download the buying examples as JSON ↓Share the comparison
Use these examples when discussing the shortlist with your team.

