본문 바로가기

자유

[github] error: src refspec master does not match any

error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/******/******.git'

branch를 master라고 생성하는데 오류 나왔당. ㅎ_ㅎ

처음 push할때 repository에 branch가 존재하지 않아서 발생한 에러라고 합니다.

 

해결법은 미리 

 

touch initial

 

git add inital

 

git commit -m "initial commit"

 

git push -u origin master

 

위 명령어 미리 하세요~

 

 

'자유' 카테고리의 다른 글

구글 플레이 스토어 개인 정보 처리 방침  (0) 2020.10.29
REST, REST API, RESTful  (0) 2019.10.14
신입 개발자 기술 면접 (1) JAVA  (0) 2019.10.11