You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From user feedback on this section: 3 users don't know what "tree-ish"
means and 3 users don't know what "pathspec" means. One user also says
that the section is very confusing and that they don't understand what
the "index" is.
From conversations on Mastodon, several users said that their impression
is that "the index" means the same thing as "HEAD". It would be good to
give users a hint that `git checkout file.txt` is not always the same as
`git checkout HEAD file.txt`: it's different if there are staged
changes to `file.txt`.
Replace "pathspec" in the description with "the specified files and/or
directories", so that hopefully users can infer that "pathspec" is
a way to specify files/directories, say "commit or tree" instead of
"tree-ish", and add an example to give a common use case for
`git checkout file.txt` (discarding unstaged changes) to hopefully make
the section more accessible to users who do not know what the term
"index" means.
Signed-off-by: Julia Evans <[email protected]>
0 commit comments