git ls-files

A low-level command that lists the files in the staging area; with --stage it also shows each one's mode and blob ID.

In more detail

It proves the index is a real list of content: git ls-files --stage shows the exact object that the next commit will record for each path. Without --stage it simply lists every tracked path.

Example

git ls-files --stage

Related terms

Taught in

References