From: Junio C Hamano Date: Sat, 20 Jun 2020 16:59:37 GMT Subject: Re: reset --merge documentation typo? Message-ID: In-Reply-To: Solomon Ucko writes: > Oops, accidentally sent as HTML instead of plain text. > > The documentation for `git reset --merge` states: It is talknig about `git reset --merge `. >> Resets the index and updates the files in the working tree that are >> different between `` and `HEAD`, but keeps those which are >> different between the index and working tree (i.e. which have changes >> which have not been added). Correct. The command makes this request to "git". I am on the commit at `HEAD`; I want to move to as if I did "git checkout ", updating the files in the working tree to that of except that if I had local changes from `HEAD` for a path, and the path is identical between `HEAD` and , carry my local changes along, but I am not flipping to a different branch---instead I am resetting the tip of the current branch. It allows the user to pretend as if the user started making these local changes _after_ "git reset --hard ", on top of , and that is only possible because the command makes sure that the paths involved in these local changes are the same between `HEAD` and . > Where it says "`HEAD`", should it say "the index"? No.