git checkout branch-name
repository에서 다른 브랜치의 파일들을 보고싶어 체크아웃하려고 했지만 이러한 오류가 떴다.
오류
error: pathspec 'branch-name' did not match any file(s) known to git
브랜치가 업데이트 되지 않아서 생긴 문제다.
아래의 명령어를 통해 해결할 수 있다.
git remote update
git fetch
git checkout branch-name