![Forrest logo](/images/logo.png)
git-ls-files:tldr:b30d8
git-ls-files: Show deleted files.
$ git ls-files --deleted
try on your machine
The command "git ls-files --deleted" is used to list all the files that have been deleted in the Git repository.
When you delete a file in your Git repository, Git keeps track of this information. The command "git ls-files --deleted" allows you to view a list of all the files that have been deleted but are still recorded in the Git index.
This command helps you identify which files have been deleted and can be useful when you want to restore or recover a deleted file or understand the history and changes in your Git repository.
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.