About comparing branches in pull requests - GitHub Docs

Pull requests display diffs to compare the changes you made in your topic branch against the base branch that you want to merge your changes into.