eclipse / egit to see previous version of a file (git)

Is it possible in egit to see the simple history of a file?

Team > Show in history shows all commits to all files. Not useful.

  • eclipse search in history
  • Import Java project from GitHub to Eclipse
  • In Eclipse/EGit is there a way to edit commit message of unpushed/local commit?
  • Structure of Java web application?
  • calling cryptdb from eclipse java project
  • Distributed issue tracker for git with usable Eclipse Mylyn support?
  • I am looking for the history of a file. There is a button in the History view that says “Show changes to selected resource” but no way to select a resource.

    There also does not appear to be any way to compare with a specific version unless that version has a tag.

    The pieces seem to be there, but are they put together properly?

    (No complex branching or other cleverness. I normally use the command line for this type of work but should not have to.)



  • Why does git ignore all files in a directory except one?
  • Eclipse keeps re-checking my git repositories. How do I turn this off or change the interval?
  • Unlink of file Failed. Should I try again?
  • Exclude remotes in git log --all?
  • Git LFS skipped files
  • How to prevent phabricator from eating my commit history
  • 2 Solutions collect form web for “eclipse / egit to see previous version of a file (git)”

    You can open a file (or select it from project explorer) and do:
    Right Click -> Team -> Show in history. This will open the following view:

    The filter circled in red is: “Show all changes of selected resource and its children” which basically will filter only the commits that relate in any way to the resource you’ve selected (you can chose the different filters to get a better understanding of how they differ from each other).

    The problem was that the Team > Show in History needs to be run from the Project Explorer window. When I first found those scoping buttons I right clicked on the class file’s edit window and did the Team > Show in History there. That appears to be broken and only shows all changes.

    (Thank you for your replies. Knowing that it could be done and by those scope buttons let me look further. I rarely use the Project Explorer, preferring to just type the class/file name into the Navigate dialog.)

    Git Baby is a git and github fan, let's start git clone.