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
Which description of Git is correct?
- An open-source distributed version control tool that works on your computer
- A website for hosting repositories and managing issues
- A cloud service that runs CI workflows
- 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.
Which features are provided by the GitHub platform on top of Git?
- Pull requests for reviewing changes
- Issues for tracking work
- The local staging area
- GitHub Actions for automating workflows
- 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: 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.
