{"thread":{"id":"8015","subject":"\"git reset --hard\" not cleaning up working copy?","startedAt":"2007-05-07T07:51:31Z","lastAt":"2007-05-07T11:13:34Z","messageCount":2,"participants":["Johan Herland","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"41301","messageId":"200705070951.39677.johan@herland.net","threadId":"8015","inReplyTo":null,"subject":"\"git reset --hard\" not cleaning up working copy?","fromName":"Johan Herland","fromEmail":"johan@herland.net","sentAt":"2007-05-07T07:51:31Z","receivedAt":"2007-05-07T07:51:31Z","isPatch":false,"sender":{"key":"johan@herland.net","avatar":"https://avatars.githubusercontent.com/u/547031?v=4"},"body":"Hi,\n\nWhen I \"git reset --hard HEAD\" to purge all my non-committed changes, it \nseems that files I created after the last commit (but not part of the \nindex) are left lying around my working copy. Is this intended?\n\n\nHave fun!\n\n...Johan\n\n-- \nJohan Herland, <johan@herland.net>\nwww.herland.net\n"},{"id":"41320","messageId":"Pine.LNX.4.64.0705071312400.4167@racer.site","threadId":"8015","inReplyTo":"200705070951.39677.johan@herland.net","subject":"Re: \"git reset --hard\" not cleaning up working copy?","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-05-07T11:13:34Z","receivedAt":"2007-05-07T11:13:34Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi,\n\nOn Mon, 7 May 2007, Johan Herland wrote:\n\n> When I \"git reset --hard HEAD\" to purge all my non-committed changes, it \n> seems that files I created after the last commit (but not part of the \n> index) are left lying around my working copy. Is this intended?\n\nBien sur it is intended! Git has no business deleting files it has not \nbeen told about.\n\nWhat you probably want is \"git clean\" after that reset...\n\nHth,\nDscho\n"}]}