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

Juri Jeong·2022년 11월 10일
0

Git

목록 보기
3/3

GitLab에 프로젝트 파일을 생성 하고
I have created a new repository on the remote.
터미널로 init, commit, push까지 했는데
And then I did git init,commit,push with terminal

git init
git remote add origin git@gitlab.com:juri.jeong.dev/jennyportfolio.git
git commit -m 'first commit'
git add .
git commit -m '1st commit'
git push -u origin master
error: src refspec master does not match any
error: failed to push some refs to 'gitlab.com:깃랩레파지토리주소'

해당 오류가 나옴.
I met this issue

SSH키를 사용하여 push에 성공!
And I solved it using the SSH key.


SSH키 발급받는 방법
How to get an SSH key
https://zeddios.tistory.com/120

0개의 댓글