본문 바로가기
사이드 프로젝트/Error해결

[Git] error: pathspec '' did not match any file(s) known to git

by 코딩맛집 2022. 12. 21.

1. 대부분 branch에 업데이트가 되지 않아서 에러 발생

 

<해결 방법1>

git remote update
git fetch
git checkout 브랜치이름

 

2. 이건 우리 팀원의 발생에러인데, fork 주소에서 clone하고 commit, push 후 branch 변경하여 에러 발생!

 

<해결 방법2>

fork에서 clone하면 안돼요~! ㅋㅋㅋ