git checkout --
Reverting Changes
Reverting changes in the working tree
Replace with File in Git Index
Changes which are not yet committed and not yet staged can be
reverted for a set of selected files. Select the file(s) in the Package
Explorer or an analogous view and click Replace With > File in Git Index.
Replace with HEAD
This feature is currently not available on single file level. You can use Reset to with option hard
to forcefully reset the entire working tree of your repository back to
the state of the HEAD commit (See "Resetting your current HEAD" below).
This operation will revert all changes in the working tree and the
index. You can't do it on a selected set of files using EGit yet.
Replace with Previous Revision
Changes that are already staged or even committed can be
"reverted" by