Advertisements

Git Basics Practice Tests: 120 Questions Explained

Advertisements
Practice tests for Git beginners: setup, staging, commits, undoing changes, .gitignore - every answer explained
1
1/5
(82) Ratings
0 students
Created by Vitalii Shumylo
Advertisements

What you'll learn

  • Check your Git basics across three tests
  • Find your weak areas: setup and commits, or inspecting and undoing changes
  • Learn why each wrong option is wrong, not just which option is right
  • Choose safely between git restore, git reset and git revert
  • Practise under time pressure with a full mixed mock exam
This course includes:
120 questions on-demand video
1 articles
0 downloadable resources
1 lessons
Full lifetime access
Access on mobile and TV
Certificate of completion
Advertisements

Course content

Requirements

  • A first look at Git or the command line (or a Git course you are taking)
  • No lab is needed to take the tests

Description

Are you starting with Git – or using it every day without being sure what each command really does? These practice tests check the basics a developer or administrator needs: why version control exists, installing and configuring Git, the working tree, staging area and commits, reading status, diff and log, undoing changes safely, ignoring files and working with remote repositories.

You get 3 practice tests with 120 questions in total (40, 40, 40). Every question was checked twice before release: once by the author against the official documentation, and once by an independent reviewer who answered it blind – any disagreement was settled with a source.

What makes the explanations useful

Each answer tells you why the right option is right and why each wrong option is wrong. The wrong options are real features, commands and settings that are easy to pick by mistake – that is where most of the learning is.

How the tests are built

  • Practice Test 1: Version Control, Setup and First Commits: what version control does, centralised vs distributed systems, Git vs GitHub, installing Git, git config and identity, git init, the staging area, git add and git commit, amending commits and good commit messages.
  • Practice Test 2: Inspecting History, Undoing Changes and Remotes: git status, git diff and git log, HEAD and the .git folder, git restore, git reset and git revert, .gitignore and git rm –cached, staging deletions, and clone, fetch, pull and push.
  • Practice Test 3: Full Mock Exam: a mixed exam across both areas – take it last, in one sitting.

Questions use single-answer and multiple-answer formats; the number of answers to pick is always stated. Suggested time: 60 minutes per test.

Versions: Git 2.51 (and Git 2.43 as shipped with Ubuntu 24.04), Git for Windows with Git Bash, GitHub, as of October 2026.

Please note: these are original practice questions written by an instructor. This course is not affiliated with or endorsed by the Software Freedom Conservancy; Git and the Git logo are trademarks of the Software Freedom Conservancy.

Who this course is for:

  • Beginners who are learning Git and want to check what they know
  • Developers, administrators and DevOps learners who use Git and want solid basics
  • Students of Git courses who want to test what they learned
Advertisements
63659C353CA971C43C9E
Advertisements
Advertisements
Free Online Courses with Certificates
Logo
Register New Account