
Git Mastery: Tricky MCQ Practice Tests
About this course
Test How Well You Really Know GitGit feels simple until a command does something you did not expect. Why does a file you just changed go into the commit without your last edit? Why does git branch -d refuse a branch whose changes are already on main?
During a rebase, why does --ours give you the other side? Where did the commit you made on a detached HEAD go? These practice tests check how well you can predict what Git really does, one short command sequence at a time.
What this practice test course offers:200 original multiple-choice questions in 4 practice tests of 50, grouped by topic Short command sequences you must reason about: what does the last command print, what state is the repository in, or why does the command failAn explanation for every answer option, plus an overall explanation of the rule behind itEvery command sequence was run with Git 2. 56 in a clean repository, so every answer matches what real Git does Current Git included: switch and restore, zdiff3 conflicts, rebase --update-refs, add --resolved (2. 56), the experimental git history fixup and drop commands, and the defaults planned for Git 3.
0 Topics covered:The working tree, the index and commits; ignore rules; status codes; diff, diff --staged and diff HEADRevision syntax (HEAD~2, HEAD^2, A.. B, A... B, reflog selectors) and searching history with log, blame and grepBranches, detached HEAD, tags, switch and restoreFast-forward and merge commits, squash merges, conflicts, merge strategies and rerereRebase, interactive rebase, autosquash, cherry-pick and revertreset, restore, stash, clean and recovering lost work with the reflogRemotes, fetch, pull, push, force-with-lease, tags and refspecsGit objects, configuration, aliases, hooks, bisect, worktrees, attributes and sparse checkout Who should take this course?
Developers preparing for interviews where Git questions come upDevelopers who use Git daily and want to stop guessing when a rebase or reset goes wrongTeam leads and DevOps engineers who define branching and release workflowsIf you have never used Git, start with a Git fundamentals course and come back here to test yourself. How to use the tests: take one test at a time, then read every explanation, including the ones for questions you answered correctly. Retake a test a few days later to check that the rules have stuck.
This course is independent and is not affiliated with or endorsed by the Git project or Software Freedom Conservancy.
Skills you'll gain
Available Coupons
Course Information
Level: All Levels
Suitable for learners at this level
Duration: Self-paced
Total course content
Instructor: Udemy Instructor
Expert course creator
This course includes:
- πΉVideo lectures
- πDownloadable resources
- π±Mobile & desktop access
- πCertificate of completion
- βΎοΈLifetime access
You May Also Like
Explore more courses similar to this one


