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

Quiz: Branching and Merging: questions with answers

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

Take the timed quiz + get a certificate →
  1. Q1. Which command creates a new branch and switches to it?
  2. Q2. When does a merge conflict happen?
  3. Q3. After fixing a conflicted file, what do you run?
  4. Q4. Which is true about rebase?
  5. Q5. What is a "fast-forward" merge?
  6. Q6. Which command lists your local branches and marks the current one?
  7. Q7. When does git merge feature create a merge commit instead of a fast-forward?
  8. Q8. In a conflicted file, what do the lines between <<<<<<< HEAD and ======= contain?
  9. Q9. Why should you not rebase a branch that teammates are already using?
  10. Q10. What is the main benefit of short-lived branches that merge often?