git 에러 - error: src refspec main does not match any

WoongSoo Kim·2021년 7월 31일

github에 처음으로 올리려고 하였을 때 발생한 에러였다.

해결방법 :

git init
git add .
git commit -m "message"
git remote add origin "github.com/your_ropo.git"
git push -u origin master

을 차례대로 입력하면 해결된다.

필자의 경우에는 master 대신 main이라는 이름으로 시도하였으나, 저 에러가 발생하였다.

profile
변하고자 할 때는

0개의 댓글