Lesson 4 of 7 · Git for DBAs

Git, GitHub, and GitLab

Git the engine versus the platforms built on it, GitHub, GitLab, Bitbucket, and Azure Repos, hosting options, and other version control systems.

Beginner 5 sections 4 min read

Git is the engine; GitHub and GitLab are platforms

Git is the version control tool itself: free, open source software that runs on your machine and tracks history. GitHub, GitLab, and similar services are platforms built around Git. They host remote repositories and add what teams need on top: pull requests, code review, permissions, issue tracking, and CI/CD pipelines.

It's a common mix-up. A useful comparison: Git is like an engine, and GitHub and GitLab are cars built around it. They all use the same engine, so a repository works the same way with the same Git commands wherever it's hosted, and can be moved from one platform to another with its full history.

GitHubGitLabBitbucketAzureGitea MicrosoftGitLab Inc.AtlassianReposself-hosted PLATFORM FEATURES pull requests, reviews, permissions, issues, CI/CD pipelines Git, the engine commits, branches, merges, and history, on every machine NOT GIT other version control SubversionMercurialPerforce centralizeddistributedlarge files

Platforms built on Git

PlatformOwned byKnown forPipelines
GitHubMicrosoftThe largest platform and home of most open source projects; strong pull request reviews and Copilot AI assistanceGitHub Actions
GitLabGitLab Inc.An all-in-one DevOps platform, available as a service or installed on your own serversGitLab CI/CD
BitbucketAtlassianTight integration with Jira and ConfluenceBitbucket Pipelines
Azure ReposMicrosoftPart of Azure DevOps, common in Microsoft-centered enterprisesAzure Pipelines
Gitea, ForgejoOpen source communitiesLightweight platforms to run yourselfGitea Actions, Forgejo Actions
Cloud provider repositoriesCloud providersGit hosting inside a cloud, such as OCI DevOps code repositoriesThe cloud's own pipeline service

The platforms use slightly different words for the same things. The biggest one: a pull request on GitHub, Bitbucket, and Azure Repos is a merge request on GitLab. Most companies pick one platform for all teams, and your company's choice is usually already made.

Cloud-hosted or self-hosted

Most platforms come in two forms. The cloud-hosted version, such as github.com or gitlab.com, is run by the provider. The self-hosted version, such as GitHub Enterprise Server or GitLab Self-Managed, runs on the company's own servers, for organizations that must keep code inside their own network. Some banks and government agencies require this. Either way, the Git commands on your machine are exactly the same.

Other version control systems

Git dominates today, but it isn't the only version control system. These don't use the Git engine, and you may meet them in older or specialized environments:

Subversion (SVN)
A centralized system, popular before Git: one central server holds the history, and users check out working copies from it. Many companies used it in the 2000s, and some still keep older scripts there.
Mercurial
A distributed system created in the same year as Git, with similar ideas and simpler commands. It's much less common today.
Perforce Helix Core
A centralized system built for very large files and repositories, widely used in game development and chip design.
Team Foundation Version Control (TFVC)
Microsoft's older centralized system in Azure DevOps, which Microsoft now recommends replacing with Git.
Centralized (SVN, TFVC)Distributed (Git, Mercurial)
Where history livesOnly on the central serverFull copy on every machine
Working offlineLimited: most actions need the serverCommit, branch, and view history offline
BranchingHeavier, often avoidedCheap and fast, used for every change
If the server is lostHistory can be lost without backupsAny clone can restore it

Many teams have migrated from SVN and TFVC to Git, often keeping their full history with migration tools.

Key takeaways

  • Git is the engine: free, open source, and running on every machine. GitHub, GitLab, and others are platforms built around it.
  • Platforms host remotes and add pull requests (merge requests on GitLab), reviews, permissions, issues, and pipelines.
  • The main platforms are GitHub, GitLab, Bitbucket, and Azure Repos, cloud-hosted or self-hosted. Git commands are the same on all of them.
  • Other version control systems, such as Subversion, Mercurial, Perforce, and TFVC, don't use Git; many teams have moved from them to Git.