git1 [Git] error: src refspec main does not match any 해결 1. 문제 상황 - ubuntu server에서 repository를 clone 하여 작업한 후 commit 후 push 하는 과정에서 error 발생 - 위 사진은 clone한 레파지토리에 추가한 쉘스크립트의 git commit 및 push 부분 - 에러 문구 git push origin main error: src refspec main does not match any error: failed to push some refs to 'https://github.com/[user]/[repo]' 2. 문제 해결 - git 작업 전에 git pull을 통해서 원격 remote에서 최신 상태를 가져왔었음 - git log 통해서 commit 작업은 문제없음을 확인 - remote와 local의 branch.. 오류해결 2024. 2. 20. 이전 1 다음