title: Unable to do "git add ."
body: <p>I was able to add my directory to git and do a git commit but strangely, when I am doing</p>
  
  <pre><code>$ git add .
  </code></pre>
  
  <p>I am getting the following error:</p>
  
  <pre><code>warning: LF will be replaced by CRLF in .idea/workspace.xml.
  The file will have its original line endings in your working directory.
  warning: LF will be replaced by CRLF in grails-app/controllers/com/abc/pqr/Rep
  ortController.groovy.
  The file will have its original line endings in your working directory.
  warning: LF will be replaced by CRLF in grails-app/domain/com/abc/pqr/Report.g
  roovy.
  The file will have its original line endings in your working directory.
  fatal: unable to stat 'Dirname#com.abc.pqr.Report': No such file or directo
  ry
  </code></pre>
  
  <p>I have already gone through <a href="https://stackoverflow.com/a/14161298/1291122">this</a> SO answer and if I try:</p>
  
  <pre><code>$ git rm Dirname#com.abc.pqr.Report
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>fatal: pathspec 'Dirname#com.abc.pqr.Report' did not match any files
  </code></pre>
  
  <p>Surprisingly there is no file as on searching through above directory, I do not find any such file as described above. </p>
  
  <p>It is worth mentioning that there was a file Dirname/#com.abc.pqr.Report in the root directory(i.e. file #com.abc.pqr.Report under Dirname under the root directory). Which I was strangely not able to delete, an issue similar to <a href="http://answers.microsoft.com/en-us/windows/forum/windows_7-files/cannot-delete-file-says-item-not-found-could-not/54d74f22-695d-4be3-8639-12f268680b00" rel="nofollow noreferrer">this</a>(I am using windows-7 os) and I could resolve it using <a href="https://superuser.com/a/174699">this</a>.But ever since I (accidentaly through a buggy grails script) created the above file, I have not been able to do the `git add .</p>