Community
Participate
Working Groups
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.
You need 'git clean' for this. *** This bug has been marked as a duplicate of bug 338717 ***