← 문제 라이브러리
CI/CD 입문 3분

git push rejected (fetch first): 30분 전엔 되던 push가 거절됨

main에 push하려는데 거절됐습니다.

검수된 문제무료
시나리오

main에 push하려는데 거절됐습니다. 그사이 동료도 main에 작업을 올렸습니다.

단서
git push 출력
$ git push origin main
 ! [rejected]        main -> main (fetch first)
hint: Updates were rejected because the remote contains work that you do not have locally.