개발 기록/git
error: failed to push some refs to 'https://github.com/주소.git'
jeong11
2024. 11. 13. 13:03
반응형
VS Code에서 github 업로드 중 에러가 발생했다
error: src refspec master does not match any
error: failed to push some refs to 'https://github.com/주소.git'
git push origin master
해당 명령어에서 master를 찾을 수 없는 것 같았다
* 해결 방법 *
깃 브랜치를 확인해본다
git branch
git push origin main
* git branch master 변경(선택) *
해도 되고 안해도 되지만 관리를 위해 git branch를 master로 변경해보기로 했다
git branch -M master
이제 origin master로 푸시할 수 있다
git push origin master
반응형