'pathspec'에 해당되는 글 1건

  1. 2022.09.22 error: pathspec 'test1' did not match any file(s) known to git

Git 명령어로 생성된 브랜치로 옮길 때 에러 발생

현상 : 

1. Git Bash 에서 새로운 브랜치로 push할 디렉토리로 이동

2. [git]$ git init

3. [git]$ git remote add url

4. gitlab 웹 페이지에서 브랜치  'test1' 생성

5. [git]$ git checkout new_branch

error: pathspec 'test1' did not match any file(s) known to git

 

조치 방안 :

1. [git]$ git remote update

2. [git]$ git fetch

3. [git]$ git checkout test1

 

 

'개발 > Git' 카테고리의 다른 글

GitHub 토큰 발급 방  (0) 2022.10.25
java cannot open git-upload-pack  (0) 2022.09.26
원격 저장소에 디렉토리 삭제  (0) 2022.09.22
GibHub?  (0) 2021.12.03
Posted by 테리
: