Git Basics Practice Tests: 120 Questions Explained

Git Basics Practice Tests: 120 Questions Explained
Practice Tests
IT & Software/IT Certifications
English
Sponsored
MockingOwl

Get Practice exams for 782+ IT certifications

Powered by MockingOwl — no sign-up required

Try free samples

Course Details

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.