Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to view the git history of a specific file using GitKraken similar to PhpStorm/WebStorm

I DON'T care about looking at the git history of a file that has been marked as "modified".

What I want is something akin to what WebStorm/PhpStorm have where you can select any file in your project (modified or NOT) and inspect it's git history and all the changes to that file.

I also DON'T want to have to look down the list of the git tree, and click on each one to see which files were commited.

like image 533
Brian Schermerhorn Avatar asked Jul 21 '17 18:07

Brian Schermerhorn


People also ask

How to see file history in GitKraken?

If you pull up the Fuzzy Finder using Command + P for Mac or Ctrl + P on Windows and Linux, you can type 'History,' and search GitKraken for the name of the file. Use the Fuzzy Finder to search your file history. Select the file, and you'll jump to that file's entire history.

How to check Git history in PhpStorm?

Review file historySelect Git | Show History from the main VCS menu or from the context menu of the selection. The History tab is added to the Git tool window showing the history for the selected file and allowing you to review and compare its revisions.

How can I see commit history in IntelliJ?

You can also select the Show Commit Timestamp option if you want IntelliJ IDEA to show the commit timestamp instead of the time when a change was authored. Click to choose the type of info you want to see: Show Details to display the commit message for the selected revision.


2 Answers

You can use the fuzzy finder in GitKraken to accomplish this.

While in the repository

  • Press control/cmd + p
  • Type history
  • Enter in the filename you wish to view the history of
like image 171
Stephen Higley Avatar answered Sep 23 '22 04:09

Stephen Higley


Here's another way if you prefer to keep your hand on the mouse. Select the most recent commit, and in the right pane check the "View all files" box. Now you have a tree view of the entire repository, not just the modified files. Browse to the file of interest, right-click and select "File History".

like image 24
Todd Menier Avatar answered Sep 21 '22 04:09

Todd Menier