git ls-files --others --exclude-standard

Category: Git - Advanced

git ls-files --others --exclude-standard

List untracked files that would be shown in git status

Lists files that are NOT tracked by Git (untracked) and not excluded by .gitignore.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.