기타
[GitHub] Github error: src refspec main does not match any 해결법
BK0625
2023. 11. 22. 16:58
반응형
레포지토리를 새롭게 만들고 연결할 때 이러한 에러가 발생하는 경우가 있다.
이유는 push를 할 때 commit한 내용이 없고 따라서 push 할게 없기 때문에 발생한다.
따라서 commit 내용을 만들어 push 하면 된다.
git init
git add .
git commit -m 'first commit'
git push -u origin main
반응형