Command
git ls-files
Lists index paths by default. --stage includes mode, object ID and stage number; --eol reports index and working-tree line endings and attributes. It does not show all files on disk.
Formal Syntax & Structure
git syntaxgit
git ls-files [--stage | --eol] [-- pathspec]Working Example
Example Snippetgit
git ls-files --stage -- run.sh