代码之家  ›  专栏  ›  技术社区  ›  WestCoastProjects

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

  •  1
  • WestCoastProjects  · 技术社区  · 4 年前

    我看了一些关于如何做标题中的任务的结果。最受欢迎的答案之一是:

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

    特别是显示了以下弹出窗口:

    enter image description here

    compare 选项:

    enter image description here

    Intellij Ultimate 2020.2 在macOS上。

    (现在只是暂时的…)接受的答案是指向 Compare Versions . 我试图复制这些指令。但是,afaict没有“比较版本”选项:

    enter image description here

    0 回复  |  直到 4 年前
        1
  •  1
  •   Ruslan Kuleshov    4 年前

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