22128

get all files in git diff in intellij

Question:

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.

Answer1:

I think this is the closest solution you can have.

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

<a href="https://i.stack.imgur.com/MVnPI.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/MVnPI.png" data-original="https://i.stack.imgur.com/MVnPI.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

<ul><li>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 <strong><em>see the diff for that file</em></strong>. And you can iterate forward and backward through the list of diff files by the <strong><em>next</em></strong> and <strong><em>back</em></strong> buttons (keyboard shortcuts too) on top left on diff window. :))</li> </ul>

<a href="https://i.stack.imgur.com/SGBc2.png" rel="nofollow"><img alt="enter image description here" class="b-lazy" data-src="https://i.stack.imgur.com/SGBc2.png" data-original="https://i.stack.imgur.com/SGBc2.png" src="https://etrip.eimg.top/images/2019/05/07/timg.gif" /></a>

Answer2:

VCS => Browse VCS Repository => Show Git Repository Log or Right clik on the file => local history => Show History for one file

Answer3:

This is easy to do through the IntelliJ IDEA menu system.

Suppose you are working on a branch cool-feat and you want to compare all files against branch master. Starting at the top menu, select:

VCS -> Git -> Branches

a pop-up menu will appear. Then, select:

master -> Compare with Current

A comparison window will open, showing all the commits since branch cool-feat was created. Select the tab Files, then select the first icon in the top-left corner under the word 'Difference', which looks like 2 arrows pointing inward (you can also use cmd-D). This brings up the file comparison window, with the current version of a file (branch cool-feat) on the left, and the version from master on the right (the git commit sha and lock symbol indicate this).

You can use the up/down arrays in the top left corner to jump between changed source lines. I have remapped keys alt-upArrow and alt-downArrow to make this easier.

Recommend

  • C# and SQL Server 2008 CLR Serialization Problem
  • how to echo a double backslash plus a variable (version number) like “\\\\hostname\\release\
  • How get a a value from a Lambda expression?
  • What is the purpose of ScheduledFuture.get() method if is retrieved from the scheduleWithFixedDelay/
  • Backing up data volume containers off machine
  • Salesforce consuming XML and display data in Visualforce report
  • Identify File Type in Java
  • How to delete first 7 characters of folder name by using batch script?
  • mssql script data insert or update
  • android check if file exists with case sensitivity?
  • jQuery colorbox breaks postbacks in ASP.NET Web Forms
  • Dynamically run java code with Process
  • Filtering out choiceless polls in the Django tutorial causes polls in the index to duplicate
  • How do you run a synchronous timer in C#?
  • Wicket - getting body of markup element
  • Unity Resources.load() won't work with external dll
  • How to get “crispEdges” for SVG text?
  • Allowing audio files in Spring MVC 3.0?
  • Javascript inside HTML import not affecting imported HTML
  • opencv deskewing a contour
  • What does “T extends Junk” mean in a generic class in Java?
  • How to redirect into different page by user type in php and mysql
  • What is the difference between dynamically creating a script tag and statically embed a script tag?
  • how to specify different css for ie
  • time column in sqlite using gorm
  • Regex not working in java 1.5
  • Create an average of multiple excel chart without the data source
  • VS2010 RDLC C#. How can I set a LocalReport object to a ReportViewer?
  • Comparing variables with strings bash
  • how to run ejabberd with Erlang on Heroku?
  • Drag and drop unicode TText in DelphiXe4
  • How to call jQuery function in HTML returned by AJAX
  • How to use Streams api peek() function and make it work?
  • Using redis as an LRU cache for postgres
  • `$http:badreq Bad Request Configuration` - from angular post method, what is wrong here?
  • How to encrypt Connectionstring written in web.config from codebehind?
  • Bad automatic Triangulation with Mayavi for coloring a surface known only by its corner
  • Can someone explain this Java code (formatting the output using System.out.format) to me?
  • What does the “id” field in an Android “Google Play Music” broadcast intent correspond to?
  • XSLT Transformation to validate rules in XML document