+1 vote
1 view
in DevOps and Agile by (20k points)

I am getting my feet wet on git and have the following issue:

My project source tree:









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 addition 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?

1 Answer

0 votes
by (28.4k points)

This simple command should do the magic: 

git status --ignored

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers !