[오류해결] error: src refspec master does not match any

Yeara Choi·2024년 1월 25일

git, GitHub

목록 보기
1/2
post-thumbnail

error: src refspec master does not match any

vscode로 로컬에서 작업하고 github에 push를 하는 과정에서 발생했다.

이 경우 git 정보를 초기화해서 해결할 수 있다.

git init
git add .
git commit -m "init"
git remote add origin [github repo address]
git push -u origin master

0개의 댓글