Hacker News new | ask | show | jobs
by mbudde 3012 days ago

    git ls-files --others --ignored --exclude-standard
Or if you want to see files ignored by a specific .gitignore:

    git ls-files --others --ignored --exclude-file=<file>
There's also

    git status --ignored
if you just want a quick view of the ignored files (i.e. not for scripting).