I am getting my feet wet on git and have the following issue:
My project source tree:
/
|
+--src/
+----refs/
+----...
|
+--vendor/
+----...
I have code (currently MEF) in my vendor branch that I will compile there and then move the references into /src/refs which is where the project picks them up from.
My issue is that I have my .gitignore set to ignore *.dll and *.pdb. I can do a 'git add -f bar.dll' to force the add of the ignored file which is ok, the problem is I can not figure out to list what files exist that are ignored.
I want to list the ignored files to make sure that I don't forget to add them.
I have read the man page on git-ls-files and can not make it work. It seems to me that 'git ls-files --exclude-standard -i' should do what I want. What am I missing?
UPDATE:
git ls-files -i will not work, you get the error: ls-files: --ignored needs some exclude pattern
git-ls-files --others -i --exclude-from=.git/info/exclude as VonC sugested below is indeed the answer. the --exclude-standard option also works instead of --exclude-from.
Summary of what works:
git-ls-files --others -i --exclude-from=.git/info/exclude
git-ls-files --others -i --exclude-standard