깜놀하는 해므찌로

error: src refspec master does not match any 해결 본문

IT

error: src refspec master does not match any 해결

agnusdei1207 2023. 5. 29. 02:00
반응형
SMALL

1. pull 없이 push 만 할 경우 문제 발생

2. 반드시 pull 실행 이후에 push 실행하기

 

git init
git add .
git commit -m "message"
git remote add origin "github.com/레파지토리 주소"
git push -u origin master

에러 발생시

git checkout -b 'master'
git push origin master

 

반응형
LIST