From: Jonathan Nieder Date: Mon, 16 Aug 2010 00:12:11 GMT Subject: Re: [PATCH] reset: Better warning message on git reset --mixed Message-ID: <20100816001211.GD3296@burratino> In-Reply-To: <1281906304.32195.26.camel@lucy.SSG5-Serial-WLAN> Ralf Ebert wrote: > git wipe [] # git reset []; git checkout [] git checkout HEAD -- . So: repository ---> index ---> work tree Limited by paths ================ r -> i: git reset -- i -> w: git checkout -- r -> w: git checkout -- Updating head symref ==================== r -> r: git checkout HEAD^0 && git reset --soft && git checkout r -> i: git checkout HEAD^0 && git reset --mixed && git checkout r -> w: git checkout Resetting branch tip ==================== r -> r: git reset --soft r -> i: git reset --mixed r -> w: git reset --hard “git checkout --no-update” and “git checkout --no-update --keep-index” do not sound very useful to me, so I am not suggesting adding them.