![Forrest logo](/images/logo.png)
git-ls-files:tldr:7aeca
git-ls-files: Show modified and deleted files.
$ git ls-files --modified
try on your machine
The command "git ls-files --modified" is used in Git to list the names of the files that have been modified or changed in the repository since the last commit or update.
Here's a breakdown of the command:
- "git" refers to the Git executable, which is used to perform Git operations.
- "ls-files" is a Git command that lists the files in the repository.
- "--modified" is an option or flag that is passed to the "git ls-files" command, specifying that we only want to list the modified files.
When you run this command in your Git repository, it will display a list of the names of all the files that have been modified or changed since the last update or commit. This is useful when you want to see an overview of the changes made in your repository before committing them.
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.