From: Miklos Vajna Date: Thu, 11 Sep 2008 23:39:41 GMT Subject: Re: RFC: perhaps a "new file" should not be deleted by "git reset --hard" Message-ID: <20080911233941.GP4829@genesis.frugalware.org> In-Reply-To: <279b37b20809111424y73a3f6b9xe7f5019b9ba0da16@mail.gmail.com> On Thu, Sep 11, 2008 at 02:24:51PM -0700, Eric Raible wrote: > My question is why "git reset --hard" can't make a special case for > _newly added_ tracked files. After all, "git status" knows that they're > "new files", and "git reset --hard" could realize that wiping them off > the face of the earth isn't the most helpful thing possible. I rarely need this, but I use 'git read-tree -m HEAD' before git reset --hard in case I want such a behaviour.