git ls-files --others -i --exclude-standard code example
Example: git ls-files --others -i --exclude-standard
git ls-files . --exclude-standard --ignored
# | +-- show only those matched by an exclude pattern
# +-- exclude files decalred in .gitignore, etc.