Search code examples
eclipsegiteclipse-pluginegit

Eclipse git checkout (aka, revert)


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 the changes and revert the file back to what's in the source repository. In Subversion this is called revert. In git the equivalent is checkout.

I can't find any menu item under Team that looks like checkout or revert. I'm using EGit 0.6.0.


Solution

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