This option --ignored
does the trick:
git status --ignored
(Update 1) I found the --ignored
option alone doesn't work in certain git installations, perhaps it's a git bug. In those cases, an additional -s
works for me:
git status -s --ignored
(Update 2)
One user reported --ignored
option is not supported in git version 1.7.0.4. My git version is 1.7.6. Another version 1.7.5.1 is the one that requires -s
. You may try
git status -h
to see if --ignored
is supported.