From: Martin von Zweigbergk Date: Tue, 18 Dec 2012 06:24:53 GMT Subject: Re: Proposal: create meaningful aliases for git reset's hard/soft/mixed Message-ID: In-Reply-To: On Wed, Nov 23, 2011 at 12:49 AM, Matthieu Moy wrote: > Philippe Vaucher writes: > >> Optional: a new mode would be introduced for consistency: >> --worktree (or maybe --tree): only updates the worktree but not the index > > That would be an alias for "git checkout -- path", right? Not quite, in two ways, I think. First, it _would_ update the index, wouldn't it? Second, "git checkout -- path" doesn't delete files that are deleted in as compared to head. I'm considering implementing support for an operation that would do what I expected "git checkout -- " and "git reset --hard -- " to do. I'm currently planning for it to be exactly "git reset --hard -- " (which is currently simply not allowed), but perhaps it would be more natural as an option to checkout (--also-deleted or something)?