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 Run Configuration - Working Directory for projects not in workspace
  • Are gitignore files being automatically created in my project?
  • Why is not recommended to have an Eclipse project folder as a Git repository?
  • Restore Eclipse subversion project connection
  • Auto commit and auto push changes in local repo to git
  • how to configure a git server to share projects
  • 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.)



  • Get collections of diffs
  • Making the git repo smaller
  • How do I setup .git with bitbucket to automatically update live Magento site when pushes are made?
  • How to import a svn repository underneath a git repository?
  • cannot pull Git remote repository from Sourcetree
  • Git keep file in repository but stop tracking local changes
  • 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.