Git · Senior · Question 47 of 76
What happens to open pull requests when you rewrite main's history?
- ✓Correct answer: They may show unrelated diffs or conflicts and need rebasing
- 2They are closed and must be reopened manually
- 3They are updated automatically to the new history
Explanation
PR branches still contain the old commits, so the diff against the new main includes them. Every branch has to be rebased with --onto, which is why rewriting shared history needs coordination.