프로젝트 작업 중이고 하드웨어 오류가 발생했습니다. 나는이 일이 있기 전에 밀지 못했던 약 30 개의 커밋을 가지고있다. 나는 충돌에서 회복했고 나의 repo를 점검했다. 이제 git status
에서이 오류 메시지가 표시됩니다.git을 사용한 데이터 손상
error: object file .git/objects/a8/f43fd5a872feda2a771e6a1ced1518f455d9f3 is empty
error: unable to find a8f43fd5a872feda2a771e6a1ced1518f455d9f3
error: object file .git/objects/a8/f43fd5a872feda2a771e6a1ced1518f455d9f3 is empty
fatal: loose object a8f43fd5a872feda2a771e6a1ced1518f455d9f3 (stored in .git/objects/a8/f43fd5a872feda2a771e6a1ced1518f455d9f3) is corrupt
어떻게이 빈 개체를 제거하고 머리글에서 오류 메시지를받을 수 있습니까?
내가 수동으로 잘못된 개체를 제거했지만,이 오류를 가지고 :fatal: could not parse HEAD
사전에 감사합니다.
[이 질문에] (http://stackoverflow.com/questions/4254389/git-corrupt-loose-object) 및 [이 질문] (http://stackoverflow.com/questions/11597003/how-to- remove-fatal-loose-object)가 도움이 될 것입니다. – Makoto
[하드 디스크 오류로 손상된 Git 개체를 복구하는 방법?] (http://stackoverflow.com/questions/801577/how-to-recover-git-objects-damaged-by-hard-disk-failure) –
조금 더 간단한 문제. 방금 아래 단계를 수행했습니다. 고려해 주셔서 감사합니다. – user3386050