Code QuizIntermediate

Merge vs rebase graph shape

A developer wants a linear history but accidentally creates a merge commit instead.

Codebash
# Goal: integrate main into feature with a clean, linear history
git checkout feature
git merge main

The goal is a linear history with no extra merge commit. What is the bug?