Problem Statement
Main has moved since you opened a PR. Compare merging main into your branch vs. rebasing onto main.
Explanation
Merging preserves history and is non-destructive but adds merge commits. Rebasing keeps a linear history but rewrites commits and requires force-push to the PR branch.
Practice Sets
This question appears in the following practice sets: