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

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


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)


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.


You can get "Replace with Head Revision" from "Git Staging"

enter image description here