본문 바로가기

Software/Git

Git 신규 브랜치 체크아웃 (did not match any file(s) known to git)

error: pathspec 'new-branch' did not match any file(s) known to git

 

원격 레파지토리에 브랜치를 추가하고 checkout 받으려고하면 발생하는 에러에요.

 

git remote update
git fetch

 

그리고 하던대로 체크아웃 받으면 되요.

 

git checkout new-branch

 

'Software > Git' 카테고리의 다른 글

Git Merge 깃 머지 (Feat, 브랜치 생성)  (0) 2020.04.09
Git Branch 삭제 (local, remote)  (0) 2020.04.01
nothing to fetch (이클립스 git)  (0) 2019.11.15
Eclipse(이클립스) git remote push  (1) 2019.10.28
Eclipse(이클립스) git clone  (0) 2019.10.24