I looked at a few results for how to do the task in the title. One of the most popular is an SOF answer here:
https://stackoverflow.com/a/49642681/1056563
In particular there is this popup shown:
However when I do apparently the same process the popup does not include those compare
options:
What do I need to do to get the compare commits option? I am on Intellij Ultimate 2020.2
on macOS.
Update The (now rather tentatively..) accepted answer refers to a link to Compare Versions
. Here is my attempt to replicate those instructions. However there is no "compare versions" option afaict:
Review the differences between two commits (From IntelliJ docs)
IntelliJ IDEA allows you to check which files were modified between two commits instead of having to browse the changes in each commit in between.
Select any two commits in the Log tab of the Git tool window ⌘(Сmd) 9 and choose the 2 commits you want to compare Versions from the context menu.
The Changes tool window with a list of files modified between the selected commits opens.
You can view the diff for any file by clicking the Show diff icon or pressing ⌘(Сmd) D.