'How to compare PR to the branch it was checked out from

Our PRs(Pull Requests) are checked out from the master branch.

I checked out a PR branch, and I like to compare it with the master branch it was checked out from. Not the most recent master branch since that will include commits from other PRs.

  1. How to find the commit name of the PR branch from which the PR was checked out?
  2. Is there a nice way to do it in IntelliJ?
git


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source