CLOUD/CICD

에러해결 error: src refspec main does not match any

헐리 2021. 10. 19. 10:28

argocd 수정사항을 gitlab-runner에서 push 하는데 다음과 같은 에러가 발생했다

$ git push origin main
error: src refspec main does not match any
error: failed to push some refs to 'http://00000.0000.000.0.0.0.0.0.git'
ERROR: Job failed: exit status 1

 

git checkout main

git push origin main

 

 

해결방법은 브랜치명을 지정해주는 것이다.