From: Junio C Hamano Date: Wed, 03 Sep 2025 21:29:56 GMT Subject: Re: [PATCH v3 6/6] doc: git-checkout: clarify restoring files section Message-ID: In-Reply-To: <90fe48cfe37852b9e245aa0f7b45383f9b879199.1756918202.git.gitgitgadget@gmail.com> "Julia Evans via GitGitGadget" writes: > - Overwrite both the index and the working tree with the > - contents at the __ for the files that match the pathspec. > + Replace the specified files and/or directories with the version from > + the given commit or tree and stage the files' contents. Hmph. I agree that there is no reason to stress that you are not required to use a commit here (hence not much point in saying tree-ish). I do not think avoiding "index" (which is not even a jargon; it is the official name of the thing) is necessarily a good idea, given that ... > +For example, `git checkout main file.txt` will replace `file.txt` > +with the version from `main`. > > `git checkout [-f|--ours|--theirs|-m|--conflict=