如何查看 Intellij 中两次 git 提交之间的所有差异?

时间:2021-01-11 06:19:56

标签: git intellij-idea

我查看了一些关于如何完成标题中的任务的结果。最受欢迎的答案之一是此处的 SOF 答案:

https://stackoverflow.com/a/49642681/1056563

特别是显示了这个弹出窗口:

enter image description here

但是,当我执行显然相同的过程时,弹出窗口不包含那些 compare 选项:

enter image description here

我需要做什么才能获得比较提交选项?我在 macOS 上使用 Intellij Ultimate 2020.2

更新(现在相当暂定..)接受的答案是指向 Compare Versions 的链接。这是我尝试复制这些说明。但是没有“比较版本”选项afaict:

enter image description here

1 个答案:

答案 0 :(得分:1)

如果您想在 IDE 中比较两个提交,请打开 Git 工具窗口,在日志中找到所需的提交,按住 Ctrl 选择它们,然后您可以点击 cmd/Ctrl+D 或右键单击并选择“比较版本” ”。 请查看更多关于提交和历史审查的 here enter image description here