The current branch master has no upstream branch.


The current branch master has no upstream branch.

집에서 테스트 프로젝트를 세팅하는 도중 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 하니 잘 됨! 해결!


원문링크 : The current branch master has no upstream branch.