Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
3 views
in DevOps and Agile by (19.4k points)

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 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 (27.5k points)

This simple command should do the magic: 

git status --ignored

Related questions

0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer
asked Jul 3, 2019 in DevOps and Agile by chandra (29.3k points)
0 votes
1 answer

Browse Categories

...