Reputation: 21981
could please anybody tell us if it is possible and if it is not, what is the best alternative to do it ? This is how it would be done in command line :
git checkout HEAD~1 -- path/to/file
But if the project is big, navigating to that file in cmd can be annoying ....
Upvotes: 7
Views: 6423
Reputation: 272
This is available in EGit 2.0:
Select the file(s)/folder(s) you want to replace with another version and use any of the commands:
Upvotes: 5
Reputation: 7369
You can do this with EGit version 1.0 or higher (it might also be possible with earlier versions, but 1.0 is the first version I noticed the feature).
Upvotes: 12
Reputation: 117176
I know you can reset your full history to a previous commit. I don't know about just one file.
This is why I don't recommend anyone using Egit. You will out grow it in a few days of usage.
Upvotes: -4