How to make a simple revert work on Git / EGit?

Solution 1:

In my version "Replace With..." -> "HEAD Revision" seems to be doing just that...

It's not in the "Team" submenu, which is a bit confusing, I admit..

Also, this might help : Eclipse git checkout (aka, revert)

Solution 2:

Go to the "Synchronize" view (if you don't have it opened, it's in "Window" / "Show View"), populate the list in case it's not loaded, right click the file you want to revert and in the context menu select "Overwrite" to revert to the latest file in the Git server.

You can also check the changes you're going to discard before reverting by selecting "Open In Compare Editor" in the context menu.