← 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?
- A.Always
- B.Never
- C.When both main and feature have new commits since they split
- 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 →