Overview
In the illustrated merge workflow, merging main into a feature branch can add a merge commit that records the branch combination.
Rebase avoids that branch-joining commit by replaying the feature commits after the newer main commits. Running git log then shows a more linear history.
The code content can be brought to the same combined state through either approach, but the history structure differs.