GitHubvs.Bitbucketvs.GitLab

GitHub vs Bitbucket vs GitLab: What are the differences?

GitHub,Bitbucket,andGitLabare 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.

  • 729K
  • 125K
  • 32.2K
  • 3.72K
  • 5.76K
  • 5.68K
  • -
  • 9.78K
  • 6.84K
No public GitHub repository stats available
No public GitHub repository stats available

What isGitHub?

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

What isBitbucket?

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 isGitLab?

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.

Want advice about which of these to choose?Ask the 亚博提现规则StackShare community!

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?

Why do developers choose GitHub vs Bitbucket vs GitLab?

  • GitHubis the leading choice,and thousands of open source projects live in GitHub's repositories,so many people find it the most convenient for collaborating with others.
  • Bitbucketis built by Atlassian,so fans of Atlassian products may prefer Bitbucket.
  • GitLabis 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?
5799 companies on 亚博提现规则StackShare use GitHub
What companies use Bitbucket?
2260 companies on 亚博提现规则StackShare use Bitbucket
What companies use GitLab?
1565 companies on 亚博提现规则StackShare use GitLab
What tools integrate with GitHub?
277 tools on 亚博提现规则StackShare integrate with GitHub
What tools integrate with Bitbucket?
95 tools on 亚博提现规则StackShare integrate with Bitbucket
What tools integrate with GitLab?
59 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

Leader spotlight: Melissa Fabros
See what's in store at GitHub Satellite 2019
Leader spotlight: Erin Spiceland
Searching DynamoDB: An indexer sidecar for Elasticse...
6 new Bitbucket Cloud features that spark joy
Share your Technical Expertise
What it's like to interview at GitLab: A peek inside...
7 Best practices for application modernization
How to connect GitLab and Pantheon to streamline Dru...
Related Stack Decisions
GitHub
GitLab
Bitbucket

Bitbucketprovides 5 private repositories for free that is I believe the best feature.GitLabseems very simmilar toGitHub.The only reason I've choosenGitHubis its popularity.It seems faster thanGitLab,uglier thanBitbucketand featured as others.The best open source projects are hosted onGitHub.Many applications are integrated withGitHublike my favourite #GitKraken.

See more
Alex A
Alex A
Founder at PRIZ Guru · | 3 up亚博平台怎么样votes· 9460 views
at PRIZ Guru
GitHub
Bitbucket
Git

An easy one this time - source control.Well,should we even think about anything else butGitthese days?:)As for the repository,we useBitbucketfor only historical reasons.We used it since the time when the pricing model was more convenient thanGitHub.AndBitbucketdoes the work for us perfectly,so no real reason to switch.

See more
GitLab
GitHub

Keep withGitHubif you feel comfortable,If you want to switch to other keep in mind the change of mindset and you will need time to adapt,i'm not saying thatGitLabis bad or difficult just the opposite,but it can be overwhelming because it have more integrated features (I love this) thanGitHub,what it means more configs available that you can mess up.

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're usingGit for source control,there are three primary options:Github,Bitbucket,或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 "merge request" in Gitlab) feature included in the repository management platform.Let's take a look at the differences between Github,Bitbucket,and Gitlab in this area.

1.Github's Pull Request Feature

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

  • 将请求分配给队友
  • 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's Pull Request Feature

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

  • 将请求分配给队友
  • 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's Merge Request Feature

While named differently,Gitlab merge requestswork 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 triggercontinuous integration,或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's marketplace recently underwent an overhaul,so they now have two places for integrations with third party tools: theGithub MarketplaceandWorks 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 hasa robust REST APIif you need to create your own custom integrations.

Bitbucket is owned by Atlassian so if you useJiraBambooyou may appreciate Bitbucket's built-in integrations.Bitbucket also has a robustapp marketplace,andan APIthat allows you to build your own integrations.It's also worth noting that Bitbucket has its ownPipelinestool that can do your continuous integration and delivery for you.

While Gitlab has fewer built-in integrations (20 are listedin 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 robustplugin systemandREST API.You can evencustomize the login pageand user interface to project your team's personality or company's brand.Gitlab also offersits own continuous integration toolbuilt into the platform.

Visibility for Open Source Projects

Github is the most popular source control management tool for open source projects because it's also great for visibility.Projects hosted on Github can have their own public-facing issues,projects,teams,and pull requests.They're also searchable,and may be featured in Github's 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 offersa 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 theydo not currently offer a search feature.Bitbucket's user profiles are also anaemic,and theirstatic site hostingdoesn't allow custom domain names.

Sometimes public visibility isn't 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,andBitbucketall 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're 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'd recommend checking out each provider's 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're getting the best plan for your needs.