본문 바로가기

dev/error

[git]fatal: The current branch feature/models has no upstream branch.

메인에서 pull 받은 이후 새로운 브랜치를 생성하고

새로운 브랜치의 작업 내용을 github에 push할 때 발생

 

업스트림 브랜치를 설정하지 않아서 발생한 에러다

 

git push --set-upstream origin 브랜치이름

 

해결은 됐는데...

 

근데 아직 upstream과 origin 과의 정확한 차이점을 모르겠다..

 

공부 후에 별도의 포스팅으로 다뤄봐야겠당