문제

안녕하세요. git-fsck에서 다음과 같은 오류가 발생했습니다. --aggressive 모드에서도 git-gc로 이를 정리할 수 없습니다.이 저장소 오류를 수정하려면 어떻게 해야 합니까?

$ git-fsck
bad sha1 file: .git/objects/55/tmp_obj_a07724
도움이 되었습니까?

해결책

슬프게도 간단한 대답은 아닙니다.하지만 이것이 도움이 될 수 있습니다:

저장소 손상 복구 중 (Git 사용자 매뉴얼에서)

다른 팁

어... tmp_obj_a07724 의심스럽게 남은 임시 파일처럼 보입니다 :)

단순히 다른 곳으로 옮기면 어떻게 될까요? .git 디렉토리 (모든 백업 후)?

에서 man git-fsck:

Any corrupt objects you will have to find in backups or other archives
(i.e., you can just remove them and do an rsync with some other site in
the hopes that somebody else has the object you have corrupted).
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top