🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Branching and Merging: all 10 questions

Quiz: Branching and Merging · Question 7 of 10

When does git merge feature create a merge commit instead of a fast-forward?

When does git merge feature create a merge commit instead of a fast-forward?

  1. A.Always
  2. B.Never
  3. C.When both main and feature have new commits since they split
  4. D.Only when there is a conflict
Answer & explanation

Correct answer: When both main and feature have new commits since they split

If main has not moved, Git simply moves the pointer forward.

Can you get the rest right without peeking?

Take the timed Quiz: Branching and Merging quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →