🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← All topics

Quiz: Git Workflow and Interview: questions with answers

10 questions, each with the answer and a short explanation.

Take the timed quiz + get a certificate →
  1. Q1. What is the difference between Git and GitHub?
  2. Q2. What does HEAD refer to?
  3. Q3. Which command applies one specific commit from another branch?
  4. Q4. Which command helps find the commit that introduced a bug using binary search?
  5. Q5. Why do teams protect the main branch?
  6. Q6. In a typical team workflow, how do changes reach the protected main branch?
  7. Q7. What does a "squash merge" of a pull request do?
  8. Q8. Which command shows who last changed each line of a file?
  9. Q9. What is the difference between git fetch and git pull in one line?
  10. Q10. Why is Git called a distributed version control system?