초급의 끄적거림

error:src refspec master does not match any 본문

기타/Git, Github

error:src refspec master does not match any

codingD 2019. 9. 15. 23:00

에러 내용


error: src refspec master does not match any
error: failed to push some refs to 'git의 URL'

 

해결방법


repository에 commits한 내용이 없기 때문에 server에 추가할 branch 또한 존재하지 않아서 발생함

고로, repository가 비어있음을 의미

→ repository에 commits할 내용을 만들면 됨

touch '파일명'

git add '파일명'

git commit -m "메세지"

git push - u origin master

 

Comments