GitHub vs. Bitbucket vs. GitLab

GitHub vs Bitbucket vs GitLab: What are the differences?

GitHub, Bitbucket, and GitLab are code collaboration and version control tools offering repository management. They each have their share of fans, though GitHub is by far the most-used of the three. Of the three, only GitLab is open source, though all three support open source projects. GitHub offers free public repositories; Bitbucket also offers free private repositories; GitLab offers a Community Edition which is entirely free.

  • 719K
  • 124K
  • 32.1K
  • 3.72K
  • 5.73K
  • 5.64K
  • -
  • 9.46K
  • 6.77K
No public GitHub repository stats available
No public GitHub repository stats available

What is GitHub?

GitHub is the best place to share code with friends, co-workers, classmates, and complete strangers. Over three million people use GitHub to build amazing things together.

What is Bitbucket?

Bitbucket gives teams one place to plan projects, collaborate on code, test and deploy, all with free private Git repositories. Teams choose Bitbucket because it has a superior Jira integration, built-in CI/CD, & is free for up to 5 users.

What is GitLab?

GitLab offers git repository management, code reviews, issue tracking, activity feeds and wikis. Enterprises install GitLab on-premise and connect it with LDAP and Active Directory servers for secure authentication and authorization. A single GitLab server can handle more than 25,000 users but it is also possible to create a high availability setup with multiple active servers.
Why do developers choose GitHub?
Why do you like GitHub?

Why do developers choose Bitbucket?
Why do you like Bitbucket?

Why do developers choose GitLab?
Why do you like GitLab?

What are the cons of using GitHub?
Downsides of GitHub?

What are the cons of using Bitbucket?
Downsides of Bitbucket?

What are the cons of using GitLab?
Downsides of GitLab?

Want advice about which of these to choose?Ask the StackShare community!

Why do developers choose GitHub vs Bitbucket vs GitLab?

  • GitHub is the leading choice, and thousands of open source projects live in GitHub鈥檚 repositories, so many people find it the most convenient for collaborating with others.
  • Bitbucket is built by Atlassian, so fans of Atlassian products may prefer Bitbucket.
  • GitLab is the only open source solution, and is also self-hosted.
How much does GitHub cost?
GitHub Pricing
How much does Bitbucket cost?
Bitbucket Pricing
How much does GitLab cost?
GitLab Pricing
What companies use GitHub?
5750 companies on StackShare use GitHub
What companies use Bitbucket?
2244 companies on StackShare use Bitbucket
What companies use GitLab?
1544 companies on StackShare use GitLab
What tools integrate with GitHub?
276 tools on StackShare integrate with GitHub
What tools integrate with Bitbucket?
94 tools on StackShare integrate with Bitbucket
What tools integrate with GitLab?
58 tools on StackShare integrate with GitLab

What are some alternatives to GitHub, Bitbucket, and GitLab?

  • GitHub Enterprise - The on-premises version of GitHub, which you can deploy and manage in your own, secure environment
  • AWS CodeCommit - Fully-managed source control service that makes it easy for companies to host secure and highly scalable private Git repositories
  • Gogs - A self-hosted Git service written in Go
  • Beanstalk - Private code hosting for teams.

See all alternatives to GitHub

GitHub Education: student-tested, peer-reviewed, and...
Our contribution to the United Nations report on fre...
GitHub鈥檚 site policy updates are ready for your feed...
Share your Technical Expertise
Meet Bitbucket Pipes. 30+ ways to automate your CI/C...
Beer, Bravado & Bitbucket: using data to drive CODE ...
Extending free use of CI/CD for GitHub on GitLab.com
Lessons from our journey to enable global code searc...
GitLab Critical Security Release: 11.8.3 and 11.7.7
Related Stack Decisions
Michael Kelly
Michael Kelly
Senior Software Engineer at StackShare | 14 upvotes 82806 views
atACK Foundry
Bitbucket
GitLab Pages
GitLab CI
GitHub
GitLab
#OpenSourceCloud

I use GitLab when building side-projects and MVPs. The interface and interactions are close enough to those of GitHub to prevent cognitive switching costs between professional and personal projects hosted on different services.

GitLab also provides a suite of tools including issue/project management, CI/CD with GitLab CI, and validation/landing pages with GitLab Pages. With everything in one place, on an #OpenSourceCloud GitLab makes it easy for me to manage much larger projects on my own, than would be possible with other solutions or tools.

It's petty I know, but I can also read the GitLab code diffs far more easily than diffs on GitHub or Bitbucket...they just look better in my opinion.

See more
Tim Abbott
Tim Abbott
Founder at Zulip | 12 upvotes 86427 views
atZulip
GitLab
GitHub

I have mixed feelings on GitHub as a product and our use of it for the Zulip open source project. On the one hand, I do feel that being on GitHub helps people discover Zulip, because we have enough stars (etc.) that we rank highly among projects on the platform. and there is a definite benefit for lowering barriers to contribution (which is important to us) that GitHub has such a dominant position in terms of what everyone has accounts with.

But even ignoring how one might feel about their new corporate owner (MicroSoft), in a lot of ways GitHub is a bad product for open source projects. Years after the "Dear GitHub" letter, there are still basic gaps in its issue tracker:

  • You can't give someone permission to label/categorize issues without full write access to a project (including ability to merge things to master, post releases, etc.).
  • You can't let anyone with a GitHub account self-assign issues to themselves.
  • Many more similar issues.

It's embarrassing, because I've talked to GitHub product managers at various open source events about these things for 3 years, and they always agree the thing is important, but then nothing ever improves in the Issues product. Maybe the new management at MicroSoft will fix their product management situation, but if not, I imagine we'll eventually do the migration to GitLab.

We have a custom bot project, http://github.com/zulip/zulipbot, to deal with some of these issues where possible, and every other large project we talk to does the same thing, more or less.

See more
frido
frido
GitHub
GitLab
Bitbucket

Bitbucket provides 5 private repositories for free that is I believe the best feature. GitLab seems very simmilar to GitHub. The only reason I've choosen GitHub is its popularity. It seems faster than GitLab, uglier than Bitbucket and featured as others. The best open source projects are hosted on GitHub. Many applications are integrated with GitHub like my favourite #GitKraken.

See more


Interest Over Time


GitHub vs. Bitbucket vs. GitLab - Help me decide


At some point in any software project, you will need to share your code with other developers. If you鈥檙e using Git for source control, there are three primary options: Github, Bitbucket, or Gitlab. Understanding the differences and tradeoffs between these three repository management platforms is vital to choosing the best option for your team.

Pull (or Merge) Request Process

One of the core features in any team-based version control platform is the pull request process. This typically happens when a team member completes a new feature and wants to get their code merged into the development or production branch of the codebase.

The feature to be merged will typically be reviewed by another developer during a code review process, and they may want to use the pull request (called 鈥渕erge request鈥 in Gitlab) feature included in the repository management platform. Let鈥檚 take a look at the differences between Github, Bitbucket, and Gitlab in this area.

1. Github鈥檚 Pull Request Feature

The pull request process in Github is designed with team-based projects in mind. In order to facilitate that workflow, Github provides some interesting features:

  • Assign pull requests to teammates
  • Attach milestones, projects, and labels to provide context
  • Subscribe to be notified when the pull request changes
  • Diff of changes between source and base branch
  • One-click merge and delete source branch
  • Integration with external continuous integration tools
  • Pull request templates to ensure contributing guidelines are being followed
  • Conversations around parts of the code that require resolution
  • Required reviews to ensure that every pull request is signed off by someone before the merge

2. Bitbucket鈥檚 Pull Request Feature

Bitbucket's pull requests are similar, although they do not offer quite as many features. Bitbucket does offer everything you need though:

  • Assign pull requests to teammates
  • Advanced text editor for comments and descriptions
  • Subscribe to be notified when the pull request changes
  • Diff of changes between source and base branch
  • One-click merge and delete source branch
  • Integration with external continuous integration tools
  • Option to require reviewer approval before merge

3. Gitlab鈥檚 Merge Request Feature

While named differently, Gitlab merge requests work pretty much the same way as pull requests. You get most of the same core features:

  • Assign merge requests to teammates
  • WIP (Work In Progress) indicator to open merge requests before they're ready to be merged
  • Integration with milestones/labels for merge request context
  • Team members can subscribe to be notified when the request is merged
  • Diff of changes between source and base branch
  • Integration with external continuous integration tools
  • One-click merge and delete source branch

One usablity difference in Gitlab is that you have to make a couple clicks to get to the diff of changes - they aren't shown by default.

While Github's pull request process has the most unique features, it may be distracting if your team doesn't need all of them. Creating a sustainable, repeatable workflow is often better than trying to do everything.

Integrations

Another common use case for repository hosting platforms is to trigger continuous integration, or continuous deployment. Typically teams will use other services to manage these tasks, so the ability to link their source control repository with third party services is another core feature of Github, Bitbucket, and Gitlab.

Github鈥檚 marketplace recently underwent an overhaul, so they now have two places for integrations with third party tools: the Github Marketplace and Works with Github. Marketplace is smaller, but it allows third party applications to actually sell services through Github. Works with Github boasts several hundred integrations with other existing services. Github also has a robust REST API if you need to create your own custom integrations.

Bitbucket is owned by Atlassian so if you use Jira or Bamboo you may appreciate Bitbucket鈥檚 built-in integrations. Bitbucket also has a robust app marketplace, and an API that allows you to build your own integrations. It's also worth noting that Bitbucket has its own Pipelines tool that can do your continuous integration and delivery for you.

While Gitlab has fewer built-in integrations (20 are listed in the admin documentation) than either Github or Bitbucket, it is open source, meaning that any part of the code can be customized. This is rarely a necessity though as they also provide a robust plugin system and REST API. You can even customize the login page and user interface to project your team鈥檚 personality or company鈥檚 brand. Gitlab also offers its own continuous integration tool built into the platform.

Visibility for Open Source Projects

Github is the most popular source control management tool for open source projects because it鈥檚 also great for visibility. Projects hosted on Github can have their own public-facing issues, projects, teams, and pull requests. They鈥檙e also searchable, and may be featured in Github鈥檚 daily or weekly newsletter. Github includes a free hosting solution for static sites, so open source projects can serve up their documentation or landing pages for free on the platform.

Gitlab offers a most starred list, search feature, and free static site hosting, but they do not offer quite as many features for user profiles. For example, you cannot follow users on Gitlab like you can on Github.

Finally, Bitbucket has the option to create public repositories, but they do not currently offer a search feature. Bitbucket鈥檚 user profiles are also anaemic, and their static site hosting doesn鈥檛 allow custom domain names.

Sometimes public visibility isn鈥檛 a feature you want though. For example, some teams want source control to be completely locked down to a private network. In this case, you should consider whether or not your repository hosting platform can be self-hosted. In this case, Github, Gitlab, and Bitbucket all offer self-hosted versions of their product, but the pricing varies quite a bit.

Pricing

Pricing for all three of these repository management platforms is available in two flavors: cloud-hosted and self-hosted.

Cloud-Hosted Pricing Comparison

If your organization is able to use the lowest-tier cloud-hosted version of each platform, your costs will typically grow as a function of team size and whether or not the code you鈥檙e hosting is open source.

*Note: Github also includes a $7/month plan for individuals who want private repositories.

Each platform offers slightly different offerings at higher price points. For example, Github offers a 99.95% uptime SLA and 24/5 tech support starting at $21 per user per month, Bitbucket offers security features like IP whitelisting and required two-step verification starting at $5 per user per month, and Gitlab will give you more CI build minutes and a host of project management features for $19 per user per month. Bitbucket and Gitlab offer free trials if you think you might need some of these premium features.

Once your needs get more complex, I鈥檇 recommend checking out each provider鈥檚 hosting page to do your own comparison:

Self-Hosted Pricing Comparison

All three of these services also offers a self-hosted option - typically for enterprise customers or users with special security requirements.

While Github and Bitbucket offer self-hosting, only Gitlab is open source, which allows its self-hosted option to be the cheapest. That said, you may want additional support support,, so be sure to check out the pricing pages above to make sure you鈥檙e getting the best plan for your needs.