Git · Inspection and internals

git ls-files

Lists tracked files. Combine it with grep for quick audits.

Syntax
git ls-files

Example

Example
git ls-files
# git ls-files | grep .env

More in this group

git archive git bisect git grep git rev-parse git shortlog git show-ref

Learn this in the course

Reference pages are the quick answer. The course explains the why, shows the full example and ends with a challenge.

Open the course