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).
Answer from Denis Rosca on Stack OverflowYou 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.)
eclipse - Way to see the whole commit history of a repo in Egit/TortoiseGit? - Stack Overflow
git - How can I view the history of a single branch in EGit for eclipse - Stack Overflow
Problems with git History view
git - Eclipse eGit : History view only shows local history, not remote history - Stack Overflow
Videos
There is actually a button Show all Branches and Tags in the Eclipse history view to show all commits. See screenshot for more detail:

(It was already mentioned by L2G, but i did not had enough reputation to post a comment there.)
I would just open up gitk --all and look at the top. This will show you the entire history. I haven't worked with the other tools but if they don't have an --all switch, use gitk.
Hope this helps.
You can check the filter button in the History View:
All Branches

This toggle activates the "
All Branches" mode.
By default, only those commits are shown in the commit log that can be reached from the currently checked out commit, i.e. the Commit Graph ends with the currently checked out commit and newer commits are not shown.
If this button is down, all commits will be shown in the commit log.
This is illustrated in the following picture from our example. The branch "beforeSplit" is currently checked out; by activating the toggle, the newer branches will become visible:
And you need to combine that with:
"Additional Refs" toggles the visibility of certain Refs created during actions like fetch, rebase, merge, for example FETCH_HEAD, ORIGIN_HEAD... This can be helpful to remove clutter from the history view.


You might need to un-check the "Additional Ref" option. please see the attached image.
Moin,
I have recently started to work with Java and git and followed a tutorial (I am new to eclipse and java so please don't be too harsh if the question is trivial. ).
After I attempted to merge branches yesterday for the first time, I seem to have changed something, so that my history view in Eclipse now looks like this.
Since then, I started from scratch, created a new repository (test_repository) and would expect the version history of my elaborated script to look something like this (GitKraken).
Can someone help me how to revert back to this history view in Eclipse?
Cheers!
Open Git Repositories view by clicking Windows > Show View > Git Repositories.
Select your repository in this view. Right click on it then select Show In > History option.
If you want to the history of a given file(Ex: server.js as shown in the image in question). Select/Locate this file in Package explorer/Navigator/Project Explorer view then right click on this file then select Team > Show in History option.
To solve this problem, I only had to click on the most right button in the history view, named "Show All Branches and Tags", shown below that is the two arrows pointing down after splitting.
The master branch was a few commits ahead and didn't show if that was not "on".

This worked for Eclipse Oxygen:
- Go to: Git Repositories view -> your repository -> branchA -> right-click and choose Show in > History -> (pin this view)
- Do the same with other branch, a new view should be opened
Because I couldn't find an option how to restrict the shown commits to a specific branch, I filed a bug in Eclipse's bug tracker.
The answer there was that the code for the input only distinguishes between repositories and files and it currently disregards branches. So it looks like it is not possible to restrict the display of the commits to a specified branch at the moment.