2018년 9월 10일 월요일

Git pathspec 'branch' did not match any file(s) known to git. error

브랜치를 만들어 놓고 다음날 브랜치에서 작업하려고 checkout 하려고 했는데
error: pathspec 'branch' did not match any file(s) known to git. error 와 같은 오류가 발생했다. git repository에도 branch가 있었지만 branch 업데이트가 안되서 그런거라고 한다.

해결 방법은 git bash에서


git remote update

git fetch

git checkout 'branchName'






댓글 없음:

댓글 쓰기