Etc

git 에서 신규 브랜치 생성 후 checkout 이 안 될 때

mr.november11 2020. 3. 12. 15:19

git checkout newBranch 명령어로 브랜치 전환이 안 되는경우

$ git checkout newBranch                                                                                     
error: pathspec 'newBranch' did not match any file(s) known to git

git repo의 정보 갱신이 필요하다.

git remote update  
$ git checkout newBranch                                                                                     
Branch 'newBranch' set up to track remote branch 'newBranch' from 'origin'.