반응형
git push 했을 때
src refspec main does not match any 가 나오면서 에러가 발생
찾아보니 clone한 repository를 새로 만들어서 push 할 때 발생한다는데.. 난 그냥 처음 만들어서 했는데 나옴..
뭐.. 어쨌든 해결방법은 다시 init해서 진행하면 된다고 한다.
git init
git add .
git commit -m "abc"
git branch -M main
git remote add origin https://github.com/*********.git
git push -u origin main
결론은 난 git init를 해도 초기화가 정상적으로 안되는거 같아. 그냥 .git 폴더를 삭제 후 다시 진행해서 완료
반응형
'git' 카테고리의 다른 글
mac에서 github push 시 토큰키 오류 (0) | 2022.04.08 |
---|