Bitzu

GH-900 ยท Version control and Git

Git versus GitHub

Git as the open-source distributed version control tool that works locally; GitHub as the hosted platform built around Git repositories with collaboration, automation and security features.

Key points

  • Git is an open-source distributed version control tool that runs on your own machine and works without any hosting service.
  • GitHub is a hosted platform built around Git repositories: it stores remote copies and adds pull requests, issues, code review, automation and security features.
  • You can use Git without GitHub, but not GitHub without Git.

Source: https://docs.github.com/en/get-started/using-git/about-git

Practice questions

Single choice

Which description of Git is correct?

  1. An open-source distributed version control tool that works on your computer
  2. A website for hosting repositories and managing issues
  3. A cloud service that runs CI workflows
  4. A code editor with built-in AI assistance
Show answer

Answer: A. An open-source distributed version control tool that works on your computer

Git is the local, open-source distributed version control tool. GitHub is the hosted platform; Git is not a website, and it is not owned by or limited to GitHub.

Select all that apply

Which features are provided by the GitHub platform on top of Git?

  1. Pull requests for reviewing changes
  2. Issues for tracking work
  3. The local staging area
  4. GitHub Actions for automating workflows
  5. Creating a local commit
Show answer

Answer: A. Pull requests for reviewing changes, B. Issues for tracking work, D. GitHub Actions for automating workflows

Pull requests, issues and automation with GitHub Actions are platform features. Creating local commits and the staging area are core Git behaviours that need no hosting.

True or false

True or false: you need a GitHub account to use Git on your own computer.

Show answer

Answer: False

False. Git is independent software and works locally without any account. A GitHub account is needed only to use the GitHub hosting platform.

Practice 8 questions on this topic in Bitzu

Short lessons, instant explanations and spaced review of what you get wrong. Free on iOS and Android.

Download on the App StoreGet it on Google Play

More GH-900 topics in this module