나는 커밋 망할 놈 자식을 내 디렉토리를 추가 할 수 있었다 그러나 이상하게도, 나는 다음과 같은 오류가 무엇입니까"git add"를 수행 할 수 없습니다.
$ git add .
을 때를하고있는 중이 야 :
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
이미 this 겪었을 SO 대답 내가하려고하면 :
:$ git rm Dirname#com.abc.pqr.Report
나는이 오류
fatal: pathspec 'Dirname#com.abc.pqr.Report' did not match any files
놀랍게도 위의 디렉토리를 검색 할 때 파일이 없기 때문에 위에서 설명한 파일을 찾을 수 없습니다.
루트 디렉토리 (예 : 루트 디렉토리의 Dirname 아래에있는 file # com.abc.pqr.Report)에 Dirname/# com.abc.pqr.Report라는 파일이 있음을 언급 할 필요가 있습니다. 이상하게도 삭제할 수 없었던 문제는 this (windows-7 OS를 사용하고 있습니다.)이고 this을 사용하여 해결할 수 있습니다. 그러나 우연히 (버그가있는 grails 스크립트를 통해) 위의 파일을 만들었으므로 `git add를 할 수 없었습니다.
'Dirname # com.abc.pqr.Report'는 매달려있는 링크입니까? 해당 파일에 대한 자세한 내용을 알려주십시오. –
@GregBacon "매달린 심볼릭 링크"란 무엇입니까? – rahulserver
@GregBacon "dangling symlink"에 대한 이해와 http://ubuntuforums.org/showthread.php?t=1078729, 그렇습니다. 그러나 나는 창문에 그것을 사용하고 있지만, 힘내 bash는 리눅스 기반으로 보인다. – rahulserver