top | item 39884477

(no title)

fernandezpablo | 1 year ago

> A nice way to see the pathspecs in action is using git ls-files. That command lists all the files in the staging area,

This should read "That command lists all the files in the _working directory_"

discuss

order

penguin_booze|1 year ago

I don't think it's the working directory. AFAIK, ls-files will only list files that are known to Git (i.e., files that have been `git add`). ls-files won't list files that are not known to Git, even if they're present in the working directory.