I can do it(Feat. DEV)

[Error]The current branch master has no upstream branch. 본문

개발자 모드/오류처리

[Error]The current branch master has no upstream branch.

까짓거 해보자 개발자 2022. 12. 17. 13:48
728x90

집에서 테스트 프로젝트를 세팅하는 도중 git push를 했는데 이와 같은 git 에러가 뜸.

fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use git push --set-upstream origin master

갓글에 검색해보니 브랜치가 설정이 안 되어 있어서

git push --set-upstream origin master 명령어를 치면 간단히 해결된다고 함.

다시 보니 에러에도 위와 같은 명령어를 사용하라고 되어있음 머쓱..

 

명령어를 치고 다시 git push 하니 잘 됨! 해결!

 

728x90