Is there a way to tell git-status to ignore the effects of .gitignore files?

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.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)