Dev workflow and DevOps · Comparison

Git vs GitHub

The two names are often used as if they meant the same thing. Git is the program that records a project's history on your machine; GitHub is a website that hosts Git repositories and adds collaboration on top.

2 options · 8 questions side by side · updated

CompareGitGitHub
What it isA version control programA hosting and collaboration service
Where it runsOn your computer, even offlineIn the cloud, or on your servers with Enterprise Server
Main jobRecord, branch and merge historyShare repos, review code, run CI, track issues
Works without the otherYes, alone or with GitLab or BitbucketNo, every GitHub repository is a Git repository
InterfaceCommand line, editors and desktop appsWebsite, GitHub Desktop and the gh CLI
Who makes itOpen-source project started by Linus TorvaldsGitHub, owned by Microsoft
CostFree (GPL 2.0)Free plan; Team and Enterprise per user
AlternativesMercurial, Subversion (now rare)GitLab, Bitbucket, Codeberg

How to choose between Git and GitHub

  • Use Git for any code project; it is the standard way to track changes.
  • Pick GitHub when you want hosting, pull request reviews and CI in one place; GitLab and Bitbucket are the main alternatives.
  • Moving hosts is straightforward for the code and its history, because every clone holds all of it; issues and pull requests take more work to move.

The options

More comparisons

Crafted in the dark. Shipped to the world.

Tell us what you are building. You get a private project space with a proposal and a line-by-line quote within a day.