나는 노동자/이런저런 Tip
gitlab - error: src refspec master does not match any
칠복이
2018. 4. 10. 16:59
git hub를 사용하여 push를 하고자 할때 다음과 같은 에러메세지가 발새한 적 있음.
git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'URL'
이를 repository에 commits한 내용이 없기 때문에 server에 추가할 branch 또한 존재하지 않아 발생한 에러다
즉 repository가 비어 있음을 이야기한다
따라서 repository에 처음 commit할 내용을 만들면 문제가 해결된다
touch initial
git add initial
git commit -m initial commit"
git push -u origin master