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
반응형
'Programming > Git' 카테고리의 다른 글
[git] Please make sure you have the correct access rights and the repository exists. (0) | 2021.11.17 |
---|---|
Set a new git repository (63) | 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 |
댓글