gitgit-lfsgit-ls-files

Should git ls-files list the files being tracked by LFS (git lfs ls-files)


I'm hoping this is a simple question - will git ls-files list the files I see from running git lfs ls-files? Or, are they managed and hence listed separately.

This is the first time I've used LFS, I've an error appearing but before I dive into that I want to check some basics, and I can't find anything about this in the documentation.


Solution

  • Git itself treats LFS files as pointer files. So, it will list them in git ls-files if they are committed to the repository.

    You can read more about pointer files here.