title: Git command to show which specific files are ignored by .gitignore
body: <p>I am getting my feet wet with Git and have the following issue:</p>
  
  <p>My project source tree:</p>
  
  <pre><code>/
  |
  +--src/
  +----refs/
  +----...
  |
  +--vendor/
  +----...
  </code></pre>
  
  <p>I have code (currently MEF) in my vendor branch that I will compile there and then move the references into <code>/src/refs</code> which is where the project picks them up from.</p>
  
  <p>My issue is that I have my <code>.gitignore</code> set to ignore <code>*.dll</code> and <code>*.pdb</code>.  I can do a <code>git add -f bar.dll</code> 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.</p>
  
  <p>I want to list the ignored files to make sure that I don't forget to add them.</p>
  
  <p>I have read the man page on <code>git ls-files</code> and can not make it work. It seems to me that <code>git ls-files --exclude-standard -i</code> should do what I want.  What am I missing?</p>