🔥 0
0
Lesson 10 of 10 15 min +100 XP

🧠 Git Mastery Quiz

Answer all questions to complete the quiz and earn 100 XP.

1

What command initializes a new Git repository?

2

What does the staging area do?

3

Which command shows the current state of your working directory and staging area?

4

What is a commit in Git?

5

What does HEAD point to in Git?

6

Which command creates a new branch?

7

What happens during a 'fast-forward' merge?

8

What does git push do?

9

What does git pull do?

10

What command would you use to discard changes in a file and restore it to the last committed version?