當推我的回購時,我的電池死在我的MacBook上。 現在我不能運行git status
不能修復壞對象頭部錯誤與git狀態
$ git status
fatal: bad object HEAD
fatal: git status --porcelain failed
我已經嘗試了一些建議,香港專業教育學院發現用於固定不好的對象錯誤。
$ git fsck --full
dangling tree 65e856976b7aa7c73f15cd71defedb8a3d622a10
我試過git prune
和git prune-packed
我仍然可以提交,藏匿,推,這似乎只是影響git的狀態
安迪的想法?
感謝
我有完全相同的問題。感謝您的解決方案! – Mauren