คอมพิวเตอร์ของฉันเสียชีวิตและตอนนี้ที่เก็บข้อมูลคอมไพล์ของฉันเสีย เมื่อฉันพยายามชำระเงินมาสเตอร์มันบอกฉันว่า:
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>)