Interview Prep/Git & GitHub/Branching strategies, pull requests and code review

Explain how `git merge-base` and `A...B` relate to what a GitHub PR diff shows.

AdvancedConceptBranching strategies, pull requests and code review
Answer

The PR "Files changed" tab shows the diff between the merge base of base and head, and the head tip, equal to git diff base...head. If the base advanced, the PR diff does not include those commits, but the merge result may still differ from what you reviewed, which is why up-to-date and merge queue checks matter.

All Git & GitHub questions Roadmap: Git & GitHub

More on Branching strategies, pull requests and code review