From: Jacob Keller Date: Mon, 28 Sep 2015 20:53:45 GMT Subject: Re: Why not git reset --hard ? Message-ID: In-Reply-To: On Mon, Sep 28, 2015 at 1:42 PM, Junio C Hamano wrote: > "George Spelvin" writes: >> I understand that "git reset --soft" makes no sense with a path, but >> why not --hard? > > I do not think there is anything fundamentally wrong for wishing for > "reset --hard ". It probably is just that nobody needed > it, because "git checkout HEAD " is a 99% acceptable > substitute for it (the only case where it makes a difference is when > you added a path to the index that did not exist in HEAD). > Personally, I would like to see this simply given the number of times that I use git reset --hard and then realize I should have used git checkout instead. I conceptually think reset --hard should do that, and that checkout is really not meant to do that as a concept. I may have some time to try and give this a look in the next few days... Regards, Jake