GitHub) error: src refspec master does not match any

2022. 5. 14. 02:05프로그래밍/개인프로젝트

 

가끔 push할 때 이런 에러들이 발생한다

error: src refspec master does not match any

error: failed to push some refs to 'https://github.com/repo~'

 

해결법 :

git init

git add .

git commit -m "message"

git push -u origin master