IntelliJ: Viewing diff of all changed files between local and a git commit/branch

前端 未结 6 854
滥情空心
滥情空心 2020-12-01 05:44

Using IntelliJ\'s diff viewer is a very nice way to review code because you can make changes in your local version with all the capabilities of the IntelliJ code editor (ref

6条回答
  •  自闭症患者
    2020-12-01 06:16

    Though Jon Tirsen's answer is correct, you need to go through entire text in order to understand how to do that.

    Here's the images of the same in mac.

    1. I am currently working with hello_world and want to compare with master.

    UPDATE: In the new UI, click on Show Diff with Working Tree

    1. Next a window will pop up. Select Files and press cmd + d

    1. Another window which shows diff. You can perform many different types of diff. Use cmd + shift + ] and cmd + shift + [ to shift between files.

    Diff Tip: IntelliJ provides advanced diff features. You can check those on the 3rd image.

提交回复
热议问题