내 컴퓨터가 죽었고 이제 내 git 저장소 중 하나가 손상되었습니다. 결제 마스터를 시도하면 다음과 같이 알려줍니다.
warning: ignoring broken ref refs/heads/master.
error: Your local changes to the following files would be overwritten by checkout:
com.vainolo.jdraw2d.releng.p2/pom.xml
Please, commit your changes or stash them before you can switch branches.
Aborting
실행 git stash하면 다음을 얻습니다.
fatal: bad revision 'HEAD'
fatal: bad revision 'HEAD'
fatal: Needed a single revision
You do not have the initial commit yet
그래서 내가 무엇을 할 수 있니?
업데이트
출력 git reflog:
fatal: bad default revision 'HEAD'
별로 유망하지 않은 ... 결과 git fsck:
error: Invalid HEAD
Checking object directories: 100% (256/256), done.
error: unable to unpack 59551f96b4e87a1c14293c19eb548ce6fa1f196f header
error: inflateEnd: stream consistency error (no message)
fatal: loose object 59551f96b4e87a1c14293c19eb548ce6fa1f196f (stored in .git/objects/59/551f96b4e87a1c14293c19eb548ce6fa1f196f) is corrupt


.git/refs/heads/master존재 하는지 그리고 그 내용이 저장소의 유효한 커밋 해시인지 확인할 수 있습니까 (예 :를 사용하여 확인할 수 있음git show <hash>)?