Check: Git
Six questions on the core commands and concepts. Closes out the track.
The module's final check. Six questions covering every lesson in the track: why you need Git, your first commit, branches, merge and rebase and conflicts. After the questions comes a mini-project: one fix you need to carry from the working directory through review, and it pulls in everything from the module at once.
How it's graded
The lesson is marked complete when all six answers are correct. Get one wrong, click "Try again": as many attempts as you need. Progress is saved only once you finish the whole quiz.
Each question has an explanation below it and commands you can use to check the answer yourself. Every
example runs in a temporary folder from mktemp -d inside parentheses, so your current folder and your
repositories stay untouched. You need Git 2.28 or newer: the -b main flag on git init arrived in
2.28. On an older Git, drop -b main, the branch will be called master.
Output is shown for Git's English interface. If your Git is set to another language, the text will be translated, the meaning is the same. Your own commit SHAs will differ.
Common mistakes
- Running
git add .out of habit. Everything goes into the commit, including.envand logs. Checkgit status --shortbefore committing and add files explicitly. - Trusting the line
Your branch is up to date with 'origin/main'. It compares against the copy oforigin/mainas of the lastfetch, not the server right now. - Rebasing a shared branch and pushing it with
--force. You can only rewrite your own history that hasn't been published yet. - Continuing a rebase with
git commit. The commit appears, but the rebase stays unfinished: you needgit rebase --continue. - Pushing a new branch for the first time without
-u. The branch shows up in origin, but a plaingit pushwon't know where to send it.
The module's mini-project
The quiz checks what you remember. The mini-project checks that you can do it with your own hands. The
scenario: you fixed a timeout in a service's config, and the fix needs to go out through a branch.
There's a secret sitting in the working directory that must never be committed. While you were working,
a teammate pushed her own fix to the same file in main, so there's no avoiding a rebase and a conflict
resolution.
Everything happens in two local repositories, no Docker or network needed. It works the same on Linux,
macOS and WSL2. Instructions: labs/01-release-timeout/README.md. Takes about 30 minutes.
What you'll need for the tasks
git status,git diff,git add <file>,git commit -m,.gitignore(the first-commit lesson)git switch -c,git push -u origin <branch>,git branch -vv(the branches lesson)git fetch,git rebase,git log --oneline --graph --all(the merge-and-rebase lesson)- conflict markers,
git addafter resolving,git rebase --continue,git rebase --abort(the conflicts lesson) - the
-C <folder>flag: run a Git command against a repository in another folder
Quiz · review the topic
Check what you remember
01 What's the fundamental difference between Git and SVN or CVS?
02 What happens after git add file.txt?
03 What is a branch in Git, physically speaking?
04 What's the main difference between rebase and merge?
05 Why shouldn't you rebase a public (shared) branch?
06 A conflict in app.ts during a merge or rebase has been resolved by hand, the markers <<<<<<<, =======, >>>>>>> are gone. What's next?
Go through it with an AI agent
The agent explains anything unclear in plain words, gives you 1 lab for this lesson and drills you on interview questions. $49 one-time, lifetime access.
Tell the agent: use MCP izi, give me lesson git-basics-06-quiz-git
Progress saved in this browser
Clear your history or open this on your phone, and the marks will be gone. Leave your email and they'll move to your account. No password needed.
Done. moved to your account. You can see your progress on any device. My progress