git error : pathspec 'application/libraries/FileName' did not match any file(s) known to git.
Git 2016. 9. 19. 09:38파일명 리네임으로 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을 한다.
'Git' 카테고리의 다른 글
Set a new git repository (0) | 2019.08.01 |
---|---|
[Git] Add git branch (0) | 2019.08.01 |
[Git] Delete git branch (0) | 2019.08.01 |
fatal: refusing to merge unrelated histories (0) | 2019.08.01 |
git error : pathspec 'application/libraries/FileName' did not match any file(s) known to git. (0) | 2016.09.19 |
댓글을 달아 주세요