Git Quiz: Commit, Branch & Merge Mastery

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 7097 | Total Attempts: 80,150
| Questions: 20 | Updated: Jul 2, 2026
Quiz
Please wait...
Question 1 / 21
🏆 Rank #--
0 %
0/100
Score 0/100

1. Which command switches to an existing branch?

Submit
Please wait...
About This Quiz
Git Quiz: Commit, Branch & Merge Mastery - Quiz

Master the essential skills of Git & Version Control (Linux+) with this college-level quiz. Test your understanding of commits, branching strategies, merge techniques, and collaborative workflows. Designed for students and professionals preparing for CompTIA Linux+ certification or strengthening their version control expertise.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. Which merge strategy is safest for preserving complete history?

Submit

3. What does git remote add origin do?

Submit

4. True or False: A commit message should be descriptive and explain what changes were made.

Submit

5. Which command undoes changes in the working directory to match the last commit?

Submit

6. What is the default branch created when initializing a Git repository?

Submit

7. True or False: git rebase rewrites commit history by moving commits onto a new base.

Submit

8. Which command lists all branches in a repository?

Submit

9. What does git fetch do?

Submit

10. True or False: The staging area (index) holds files ready to be committed.

Submit

11. What does the git commit command do?

Submit

12. What is a fast-forward merge in Git?

Submit

13. Which command shows unstaged changes in your working directory?

Submit

14. True or False: git push uploads local commits to a remote repository.

Submit

15. How do you view the commit history in Git?

Submit

16. What does HEAD refer to in Git?

Submit

17. Which command stages files for the next commit?

Submit

18. True or False: A merge conflict occurs when two branches modify the same lines of code.

Submit

19. What is the purpose of git merge?

Submit

20. Which command creates a new branch in Git?

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
Which command switches to an existing branch?
Which merge strategy is safest for preserving complete history?
What does git remote add origin do?
True or False: A commit message should be descriptive and explain what...
Which command undoes changes in the working directory to match the...
What is the default branch created when initializing a Git repository?
True or False: git rebase rewrites commit history by moving commits...
Which command lists all branches in a repository?
What does git fetch do?
True or False: The staging area (index) holds files ready to be...
What does the git commit command do?
What is a fast-forward merge in Git?
Which command shows unstaged changes in your working directory?
True or False: git push uploads local commits to a remote repository.
How do you view the commit history in Git?
What does HEAD refer to in Git?
Which command stages files for the next commit?
True or False: A merge conflict occurs when two branches modify the...
What is the purpose of git merge?
Which command creates a new branch in Git?
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!