Git · Inspection and internals
git ls-files
Lists tracked files. Combine it with grep for quick audits.
Syntax
git ls-filesExample
Example
git ls-files # git ls-files | grep .env
More in this group
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.