filesystems - Unable to do "git add ." -


i able add directory git , git commit strangely, when doing

$ git add . 

i getting following error:

warning: lf replaced crlf in .idea/workspace.xml. file have original line endings in working directory. warning: lf replaced crlf in grails-app/controllers/com/abc/pqr/rep ortcontroller.groovy. file have original line endings in working directory. warning: lf replaced crlf in grails-app/domain/com/abc/pqr/report.g roovy. file have original line endings in working directory. fatal: unable stat 'dirname#com.abc.pqr.report': no such file or directo ry 

i have gone through this answer , if try:

$ git rm dirname#com.abc.pqr.report 

i error:

fatal: pathspec 'dirname#com.abc.pqr.report' did not match files 

surprisingly there no file on searching through above directory, not find such file described above.

it worth mentioning there file dirname/#com.abc.pqr.report in root directory(i.e. file #com.abc.pqr.report under dirname under root directory). strangely not able delete, issue similar this(i using windows-7 os) , resolve using this.but ever since (accidentaly through buggy grails script) created above file, have not been able `git add .

if not want dirname#com.abc.pqr.report part of commit, stage changes do want explicitly. example:

$ git add .idea/workspace.xml $ git add grails-app/controllers grails-app/domain ...

the commands above assume dirname#com.abc.pqr.report not in 1 of named directories. if was, name toplevel directories can , specific when forced.

once have staged changes want git add, can safely commit them git commit.


Comments

Popular posts from this blog

ios - RestKit 0.20 — CoreData: error: Failed to call designated initializer on NSManagedObject class (again) -

java - Digest auth with Spring Security using javaconfig -

laravel - PDOException in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: YES) -