메모장

failed to push some refs to 에러

gorae_lulu 2023. 3. 27. 23:05

push를 하면서 이 에러를 보았던 게 처음은 아니었지만..

그전은 remote저장소에 있는 소스를 최신버전으로 pull을 받지 않아 생긴 에러였고

다시 pull 하고 push하면 해결이 되었었다.

하지만 이번경우엔 pull한 뒤에도 push가 안 됐고, git push -f origin 명령어로 강제 push해도 소용없었다.

fatal error in commit_refs라는 키워드로 검색해 찾은 git gc명령어를 실행해도 안되었고....

 

구글링 결과 깃허브 사이트 상태로 인한 오류로 시간이 지나면 해결된다는 글을 보았다.

 

아래 주소를 통해 깃허브의 상태를 보고 나는 몇몇 status가 !였음을 확인하였고, 원인은 이 때문이었다.

https://www.githubstatus.com/ 

 

GitHub Status

Subscribe to updates for Incident with Actions, API Requests, Codespaces, Git Operations, Issues, Pages and Pull Requests via email and/or text message. You'll receive email notifications when incidents are updated, and text message notifications whenever

www.githubstatus.com

 

 분 후. 상태를 확인하니 다 normal로 돌아와서 다시 push를 해보니 성공했다.

 

 

 

참고.

https://stackoverflow.com/questions/68729674/remote-rejected-main-main-failure-failed-to-push-some-refs-when -tryi

 

! [remote rejected] main -> main (failure) , failed to push some refs, when trying to push to the only branch in a repository

I'm working on this discord bot, and I only got 1 branch in my repository, ain't needing more. I opened up my command line the way I have been for the past few weeks, and it said something about gi...

stackoverflow.com

 

'메모장' 카테고리의 다른 글

실행 컨텍스트란  (0) 2023.03.28
console.log와 return의 차이알기  (0) 2023.02.09
NPM이란 무엇이며 어떻게 작동할까요?  (0) 2022.11.23
HTML ,CSS, Javascript 개념정리  (0) 2022.10.26