Is it possible to do the equivalent of git checkout
from within Eclipse using the EGit plugin?
I have a file that\'s been modified. I want to discards t
For reverting, you can right click on the file/directory that you want, then select Replace With -> HEAD version
To revert your entire file to repository's data:
Click on the folder you wish to do the revision and then go to the GitStaging
Open Team Synchronizing. Find the file and right click --> Overwrite.
UPDATE
In Eclipse Luna (4.4.2) Open Team Synchronizing. Find the file and right click --> "Revert..."
This can be done via the context menu "Replace with/File in Git index" on the file in package view.
Revert a single file by going to Window > Show View > Other > Git Staging > Unstaged Changes
Select the file(s) you wish to revert. Right click and choose Replace with HEAD revision
Note that this step can't be undone.
(I am using Eclipse Version: 3.7.2 Egit version 2.3.1.201302201838-r)
in Eclipse Version: 3.7.0
in "Team Synchronizing perspective" --> right click on file/folder in synchronize view --> overwrite