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

前端 未结 6 850
滥情空心
滥情空心 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:18

    This has now been implemented. In order to compare two branches you do:

    1. Check out one of the branches you want to compare with.
    2. Select the branch you want to compare with in the Git branch popup in the status bar in the bottom right of the IntelliJ window. A popup with some options is shown.
    3. Select the "Compare" option.
    4. This by default shows all the commits you can also select the "Diff" tab to show the actual changes.

    This is all described in much greater detail in one of their blog posts.

提交回复
热议问题