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

夙愿已清 提交于 2019-12-03 03:31:42

问题


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.


回答1:


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



回答2:


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".



来源:https://stackoverflow.com/questions/45244076/how-to-view-the-git-history-of-a-specific-file-using-gitkraken-similar-to-phpsto

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!