본문 바로가기
Programming/Git

git error : pathspec 'application/libraries/FileName' did not match any file(s) known to git.

by guru_k 2016. 9. 19.
728x90
반응형

파일명 리네임으로 git commit 시 해당 에러가 발생하였을 때


did not match any file(s) known to git.


1. 변경 전 파일이름을 git에서 un-add 한다.


1
git reset HEAD oldFileName.file
cs


2. 새로 변경 된 파일이름을 git에 add 한다.


1
git add newFileName.file
cs


3.다시 commit을 한다.



728x90
반응형

댓글