[오류해결] git push 오류 (! [remote rejected] main -> main (failure)error: failed to push some refs to ... )
·
웹 프로젝트/웹 프로젝트
오류 상황 깃 사용 시 git add . git commit -m "커밋메시지" 위 과정까지 별 이상없이 진행되었는데 git push origin main 입력하자 다음과 같은 오류가 떴다. ! [remote rejected] main -> main(failure) error: failed to push some refs to "레파지토리 주소" 해결노력 1. 원격저장소와 내 컴퓨터 동기화 git pull origin main 2. git pull --rebase origin main 3. 강제 push (파일 꼬일 각오를 하고 강제로 push) git push -f origin main 4. 깃허브 사이트의 오류가 해결될 때까지 기다리기 위의 과정 모두 실행했는데도 해결이 안 되면 gitHub 자체의 ..