I can find out what files are being ignored with
git status --ignored
I can find out why one file is being ignored with
git check-ignore -v somefile
How to combine the two? My feeble attempts don't work. Expressions like
git check-ignore -v .
or
get check-ignore -v **/*
come up way short; they list only a tiny fraction of the files listed in git status --ignored
. (For example, .DS_Store
files don't appear at all.)
The best I could come up with, with my feeble unix fu, is:
git status --ignored | tr -d '\t' | git check-ignore --verbose --stdin
But it errors out on the final empty line of the status
output, and it seems nutty that I have to play these pipe games at all.