14
จะแก้ไขที่เก็บ git ที่เสียหายได้อย่างไร
ฉันพยายามโคลนที่เก็บของฉันซึ่งฉันเก็บไว้ใน Ubuntu หนึ่งโฟลเดอร์ไปยังเครื่องใหม่และฉันได้รับสิ่งนี้: christopher@christopher-laptop:~/source/personal$ git clone ~/Ubuntu\ One\ Side\ Work/projects.git/ Cloning into 'projects'... done. fatal: unable to read tree 29a422c19251aeaeb907175e9b3219a9bed6c616 christopher@christopher-laptop:~/source/personal$ ผมก็เลยลองดูคำถามอื่น ๆ แบบนี้ที่ถูกถามที่นี่และส่วนใหญ่บอกว่าวิ่งgit fsck --fullแล้วผมจะได้รับเมื่อลองทำ christopher@christopher-laptop:~/Ubuntu One Side Work/projects.git$ git fsck --full Checking object directories: 100% (256/256), done. Checking objects: 100% (447/447), done. broken link from commit 235ae1f48701d577d71ebd430344a159e5ba4881 to …
106
git