Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

get all files in git diff in intellij

Is there a quick way to open all files with a diff between 2 commits in intellij?

Im looking at my diffs in gitlab and Im thinking itd be easier to just do the edits there, yet I want the benefits of the IDE so to speak.

like image 850
Paul Stanley Avatar asked Nov 16 '16 16:11

Paul Stanley


People also ask

How do I compare files between two commits in IntelliJ?

IntelliJ IDEA allows you to check which files were modified between two commits instead of having to browse the changes in each commit in between. Select any two commits in the Log tab of the Git tool window Alt+9 and choose Compare Versions from the context menu.

How do I compare Git branches in IntelliJ?

Check out one of the branches you want to compare with. 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.

How do I view a diff between two files in Git?

You can view the diff for any file by clicking or pressing Ctrl+D. You can check how a committed file revision is different from its local version: Open the Git tool window Alt+9 and switch to the Log tab. Select the commit you are interested in, and in the right pane select the file. Click the button on the toolbar.

How do I view a git repository in IntelliJ IDEA?

IntelliJ IDEA lets you review the state of your project at a selected revision. Open the Git tool window Alt+9 and switch to the Log tab. Select a commit and choose Show Repository at Revision from the context menu. The Repositories tool window will open containing the snapshot of your project at the selected revision.


1 Answers

I think this is the closest solution you can have.

  • Open Version Control tool window.
  • Go to Log tab.
  • You can see the network diagram. Select 2 commits that you want to compare.
  • Then from the right hand side you can see the list of diff files between 2 commits.

enter image description here

  • Further you can select a file from the list and, click on top left red color button (Diff button) on the file list window and see the diff for that file. And you can iterate forward and backward through the list of diff files by the next and back buttons (keyboard shortcuts too) on top left on diff window. :))

enter image description here

like image 133
Supun Wijerathne Avatar answered Oct 01 '22 08:10

Supun Wijerathne