Sign in
← Git: basics
6 min · easy · Lesson 6 of 6

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

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

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.

Get access for $49

Tell the agent: use MCP izi, give me lesson git-basics-06-quiz-git