[Github] git push --set-upstream 뜰 경우

Y_Y·2022년 11월 2일
0

GitHub

목록 보기
5/5

에러가 떴었는데 정확한 에러 코드가 기억이 안나서 블로그에서 퍼왔다.
아마 비슷한 내용일 것이다.

git remote를 하고 처음 push할 때 아마 이런 에러가 뜰 수 있는데 이 이유는 정확하게 원격저장소의 이름을 입력하지 않았기 때문이다.

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 remote -v

git push origin main
profile
남을 위해(나를 위해) 글을 쓰는 Velog

0개의 댓글