How to list only eixsting files in a git repo?

67 Views Asked by At

I used sparse checkout to clone subfolders and files from a repo, as the instructions in this question. Currently, I want to list the checked out files in my disk - not the full repo tree, only the existing files, is there any command can do this?

I know I can use git ls-tree command to list the whole files in the repo, but that's not I want, I just need to list the existing files in my current repo.

Thanks in advance.

0

There are 0 best solutions below