| Resetting a specific file [message #759029] |
Fri, 25 November 2011 11:39  |
Harry Houdini Messages: 131 Registered: February 2010 |
Senior Member |
|
|
Hello,
I made some modifications on a file, but I don't want to commit them, and want to revert it to the version stored on the remote server (which may be newer that the file I originally got).
In Subversive, it was the "Override and update" command.
In EGit, I found the Reset command, but it seems to be applyable only to the full project.
What should I do ?
Thanks.
|
|
|
|
|
|
| Re: Resetting a specific file [message #759352 is a reply to message #759321] |
Mon, 28 November 2011 08:24   |
R Shapiro Messages: 308 Registered: June 2011 |
Senior Member |
|
|
The nightly build has an 'Overwrite' option in the Synchronize view. I don't know for sure what the semantics are here, in particular where it will overwrite from the HEAD, the Index, or the last commit fetched from whichever remote you're synchronizing against. One of the egit authors can no doubt answer that question.
Either way, I think you'll find it more straightforward to perform operations like this from an Explorer view using 'Replace With'. It's a bit roundabout to go through the work of synchronizing if you already know exactly what you want to do. Certainly 'Replace With' is much more explicit about what it will be doing.
In general I've noticed a tendency for Eclipse users to go through synchronization for no particular reason. This is true with subversive/subclipse and cvs, as well as egit. Unless you want to do detailed comparisons of multiple files, there's no reason in any Team provider to pay the price of synchronization.
[Updated on: Mon, 28 November 2011 08:28] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.01919 seconds