Y
Hacker News
new
|
ask
|
show
|
jobs
by
fernandezpablo
806 days 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_"
1 comments
penguin_booze
806 days 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.
link