본문 바로가기
  • 뚜기네
공부방/Programming

[Git] git Error fatal: The current branch master has no upstream branch.To push the current branch and set the remote as upstream, use

by E_DDUGI 2023. 1. 9.
반응형

 

 

github Repository 생성후

$ git remote add origin Repository주소
$ git add . 
$ git commit -m "메시지" 
$ git push

아래 이미지와 같은 에러 메세지가 나왔다.

 

원인은 Repository 생성후 원격 저장소에 대한 기본 브랜치 설정을 안 해줬기 때문이다

처음 브랜치 설정만 해주면 해결이 가능

$ git push --set-upstream origin master

위 이미지에도 친절하게 설명이 나와있다

 

반응형

'공부방 > Programming' 카테고리의 다른 글

reset.css  (0) 2023.02.10
git 명령어 모음  (0) 2023.02.01
ERROR E325: ATTENTION  (0) 2022.12.28
6/8 css3 selecter 선택자 태그  (0) 2020.08.27
<CSS3> 4강 선택자 selector.  (0) 2020.08.19