I was able to add my directory to git and do a git commit but strangely, when I am doing
$ git add .
I am getting the following error:
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
I have already gone through this SO answer and if I try:
$ git rm Dirname#com.abc.pqr.Report
I get this error:
fatal: pathspec 'Dirname#com.abc.pqr.Report' did not match any files
Surprisingly there is no file as on searching through above directory, I do not find any such file as described above.
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 this(I am using windows-7 os) and I could resolve it using this.But ever since I (accidentaly through a buggy grails script) created the above file, I have not been able to do the `git add .