How to use the Git MCQ Quiz
- 1. AnswerChoose one option for each of the 15 questions.
- 2. Check your scoreSee your total and the right answer for each question.
- 3. ReviseRead the one-line explanation under every question.
Topics in the quiz
The questions follow the order you learn Git: what git add does, creating branches with switch -c, the difference between fetch and pull, what HEAD points to and why merge conflicts happen. Then they move to team situations: the safest way to undo a pushed commit (revert, not reset), when a fast-forward happens, why rebasing shared commits causes trouble, and how git reflog rescues work after a bad reset.
Get every answer right and the score shows 15 / 15. Wrong picks turn red and the correct option turns green, with the reason underneath.
Turning the score into skill
Interviewers rarely ask for definitions alone. They ask what you would do: you committed to main by mistake, your branch is behind, two people edited the same function. For each question you miss, open a terminal, make a throwaway repository with git init and recreate the situation. Ten minutes of breaking and fixing a test repo teaches more than rereading notes.
- Practise resolving a conflict by hand at least once.
- Try
git stash, switch branches andgit stash pop. - Reset a commit away, then find it in the reflog.
The Git branching visualizer draws what your commands do, and the Git commands cheat sheet has the syntax.
Frequently asked questions
Are the questions the same every time?
Yes, the same 15 questions, so you can retry until you know them. Use Start again to clear your answers.
Is this enough to learn Git?
It checks the concepts. Real confidence comes from using Git on a project with branches and pull requests.
Is the Git MCQ Quiz free?
Yes, the Git MCQ Quiz is free. The first time you check your first score, you are asked for your name and WhatsApp number once. After that, this and every other Uncodemy tool opens straight away without the form.