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

C++
git ls-files . --exclude-standard --ignored
#                 |                  +-- show only those matched by an exclude pattern
#                 +-- exclude files decalred in .gitignore, etc.
Source

Also in C++: