Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
392 views
in Technique[技术] by (71.8m points)

How to view all differences between two git commits within Intellij?

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:

enter image description here

However when I do apparently the same process the popup does not include those compare options:

enter image description here

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:

enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

If you would like to compare two commits in IDE then please open Git toolwindow, find in a log desired commits, select them while holding Ctrl and then you can hit cmd/Ctrl+D or right-click and choose "Compare version". Please see more here about commit and history review enter image description here


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...