Eclipse git checkout (aka, revert)

Solution 1:

This can be done via the context menu "Replace with/File in Git index" on the file in package view.

Solution 2:

You can achieve this by doing a (hard) reset. On the project's context menu, select Team > Reset to..., choose "HEAD" and "Hard" as reset type.

Please note that doing this you will lose the changes of ALL files. To revert just a single file see this answer.

Solution 3:

in Eclipse Version: 3.7.0

in "Team Synchronizing perspective" --> right click on file/folder in synchronize view --> overwrite