git ls-files

Lists all the files tracked by git

This command lists all the files that are currently being tracked by git in the current repository. It provides a comprehensive list of all files, including directories, subdirectories, and individual files. Files currently in the staging area also included.

Some potential variations of this command include:

  • git ls-files --cached: Lists only the files that are currently staged (added to the index) in the repository.
  • git ls-files --others: Lists only the files that are currently modified or untracked in the repository.
  • git ls-files --deleted: Lists only the files that have been deleted from the repository.

These variations can provide more specific information about the files being tracked by git.

Sign in to enable bookmarking, reminders, progress-tracking and more...