Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356546 - hard reset does not remove newly created local files
Summary: hard reset does not remove newly created local files
Status: CLOSED DUPLICATE of bug 338717
Alias: None
Product: EGit
Classification: Technology
Component: Core (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-02 02:09 EDT by David Williams CLA
Modified: 2011-09-02 06:33 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Williams CLA 2011-09-02 02:09:28 EDT
I've not sure if this is a "feature request" or bug or quirk of Git ... but, from (the little) I have read, I was expecting a hard reset to put my workspace into exactly the same state as the repository branch ... and it does, for content of existing files ... such as if I've typed in some new code and saved it, it will get overwritten with repository version ... but ... it does not remove any new files I've created. This was especially confusing for me, because I had set some project specific settings, realized I'd forgotten to make a local branch first, wanted to 'reset' to known point, but I still had the preferences set. With some experimentation, it appears due to the fact that in this once case, a new '.settings' file was created (instead of existing one modified). Very confusing.
Comment 1 Remy Suen CLA 2011-09-02 06:33:30 EDT
You need 'git clean' for this.

*** This bug has been marked as a duplicate of bug 338717 ***