error: pathspec 'branch name' did not match any file(s) known to git (브랜치 전환 오류)

bbumjun·2019년 7월 24일
0

GIT

목록 보기
1/1
post-thumbnail
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
profile
Wanna be a Front-end developer

0개의 댓글