ProgramingTip

Git으로 푸시하려는 "remote : fatal error in commit_refs"오류를 어떻게 수정합니까?

bestdevel 2020. 12. 10. 20:56
반응형

Git으로 푸시하려는 "remote : fatal error in commit_refs"오류를 어떻게 수정합니까?


마스터하기 위해 노력하면 다음과 같은 결과가 나타납니다.

원격 : commit_refs의 치명적인 오류

어떻게 어떻게 수 있습니까?


제 경우에는 GitHub가 강화하려고합니다.

GitHub의 상태에 대해 사이트 알아 보려면 https://www.githubstatus.com/확인 하십시오 .

그것이 올라갈 때 당신은 밀 수있을 것입니다.


이것은 나를 위해 수정했습니다.

git gc

내 오류를 해결 한 가비지 수집이 시작됩니다.


저장소가 온라인 상태인지 확인하십시오.

오늘 github로 강화할 때이 오류가 발생했지만 유니콘 오류 메시지가 표시되지 않고 탐색 할 수도 없습니다.


나는 제출 http://blastedbio.blogspot.co.uk/2016/05/sync-github-mirror-with-cron.html관련하여 GitHub로 제기 되었고 보호 된 분기 설정으로 인한 발생했다. GitHub는 오류 메시지를 개선했습니다.

$ git push mirror master
Counting objects: 391, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (391/391), done.
Writing objects: 100% (391/391), 99.28 KiB | 0 bytes/s, done.
Total 391 (delta 298), reused 0 (delta 0)
remote: error: GH006: Protected branch update failed for refs/heads/master.
remote: error: You're not authorized to push to this branch. Visit https://help.github.com/articles/about-protected-branches/ for more information.
To git@github.com:HuttonICS/biopython.git
 ! [remote rejected] master -> master (protected branch hook declined)
error: failed to push some refs to 'git@github.com:HuttonICS/biopython.git'

지금 다시 시도하면보다 건설적인 오류 보고서를 작성합니다. 제 경우에는 https://help.github.com/articles/about-protected-branches/에 따라 보호 된 분기 설정을 조정해야합니다.


풀 후 업스트림 브랜치 위에 현재 브랜치를 리베이스하십시오.

git pull origin master -r

그런 다음 다시 시작합니다.

git push origin master

분기에서 최신 코드를 가져 오기 해결했습니다.

git pull origin master
git push origin master

제 경우에는 중단 된 프로세스가 문제를 일으 다 고 생각합니다. 나는 그것을 죽이고 재 시도 문제는 사라.


내 경험으로 볼 때 GitHub는 많은 거대한 저장소를 대량으로 푸시 할 때이 문제를 속도 제한이 있습니다. 또한 임의의 경우 "읽을 수 없음"문제가 있습니다.

매번 푸시하기 전에 30 초 동안 지연 하면 두 문제가 모두 사라지고 결함없이 수백 개의 리포지토리를 계속할 수 있습니다. (한숨, 묻지도 마세요).

참고 URL : https://stackoverflow.com/questions/37341960/how-do-i-fix-remote-fatal-error-in-commit-refs-errors-trying-to-push-with-git

반응형