Forrest logo
back to the git tool

git-lfs:tldr:66974

git-lfs: List tracked files that have been committed.
$ git lfs ls-files
try on your machine

The command "git lfs ls-files" is used to list the files that are being tracked by Git LFS (Large File Storage) in a Git repository.

Git LFS is an extension for Git that allows tracking and versioning of large files, such as media files, datasets, and binaries. It enables efficient storage, retrieval, and tracking of these files, which are often too large to be managed effectively by regular Git.

When you run the command "git lfs ls-files", Git LFS checks the repository's history and identifies all the files that are being tracked using Git LFS. It then displays a list of these files along with their paths and sizes.

This command can be helpful when you want to check which files are being managed by Git LFS in your repository. It allows you to see the specific files that have been designated for Git LFS tracking, making it easier to manage large files and ensure their proper handling.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the git tool