From: Eric Raible Date: Thu, 11 Sep 2008 23:29:40 GMT Subject: Re: RFC: perhaps a "new file" should not be deleted by "git reset --hard" Message-ID: <279b37b20809111629s3c91ae4ci33135535812383e3@mail.gmail.com> In-Reply-To: <3ab397d0809111604r5d9dda04p32a987208d1fa92d@mail.gmail.com> On Thu, Sep 11, 2008 at 4:04 PM, Jeff Whiteside wrote: > And if you want to delete all untracked files > ls | sed s/`git status --index --filenamesonly`//g | rm > ls | sed s/`git status --commitrepo --filenamesonly`//g | rm > (I realize those commands don't actually work, but I'm a noob.) "git clean" will remove untracked files.