Are you just starting with Git? Our Git Basic Quiz is designed to test your understanding of essential version control concepts like repositories, commits, branches, and basic Git commands. Ideal for beginners, this quiz helps reinforce your Git knowledge and prepares you for collaborative coding.

Why Take This Quiz?

  • Test your basic Git knowledge
  • Learn by practicing real-world Git commands
  • Build a strong foundation for version control

Ready to get started? Click the button below to take the quiz!

0%
close report window

Report a question

You cannot submit an empty report. Please add some details.
tail spin
git

GIT (Basic)

Take our Git Basic Quiz to test your fundamental knowledge of version control. Perfect for beginners learning Git commands, repositories, and commits. Start now!

Max Time : 10 Min.

tail spin

The number of attempts remaining is 5

git reset --soft keeps changes in the staging area

1 / 15

bookmark empty

How do you undo the last commit without losing changes?

A version control system

2 / 15

bookmark empty

What is Git?

git checkout or git restore discards unstaged changes

3 / 15

bookmark empty

How do you discard unstaged changes in the working directory?

Initializes a new Git repository in a directory

4 / 15

bookmark empty

What does git init do?

git reset --soft HEAD~1 keeps changes in the working directory

5 / 15

bookmark empty

How do you undo the last commit but keep the changes?

Commits the staged changes to the repository

6 / 15

bookmark empty

What does git commit do?

git status shows the working directory and staging area

7 / 15

bookmark empty

Which command is used to check the status of the repository?

Clones a remote repository to the local machine

8 / 15

bookmark empty

What is the purpose of git clone?

git add stages changes for the next commit

9 / 15

bookmark empty

How do you add changes to the staging area?

git branch creates a new branch

10 / 15

bookmark empty

How do you create a new branch in Git?

git checkout -- or git restore is used

11 / 15

bookmark empty

How do you discard changes in the working directory?

git branch -d deletes a branch locally

12 / 15

bookmark empty

Which command deletes a branch locally?

git init creates a new local Git repository

13 / 15

bookmark empty

Which command initializes a new Git repository?

git branch -d deletes a branch locally

14 / 15

bookmark empty

Which command deletes a branch in Git?

git diff shows the changes made but not yet staged

15 / 15

bookmark empty

How do you view the changes made in a file before committing?

Get Your Certificate ! Your Certificates Would be sent to the mentioned email only. Do Check Your Spam Folder once for the Mail.

I Agree to Terms & Privacy Policy of CloudCusp

Your score is

The average score is 0%