【发布时间】:2011-12-01 20:24:57
【问题描述】:
我的开发存储库在某个时候丢失了一个对象。
$ git fsck
fatal: failed to read object 2dddc84156fa30e4614a7ea5a1895885011b8db8: Invalid argument
$ git cat-file -t 2dddc84156fa30e4614a7ea5a1895885011b8db8
error: unable to find 2dddc84156fa30e4614a7ea5a1895885011b8db8
fatal: git cat-file 2dddc84156fa30e4614a7ea5a1895885011b8db8: bad file
新克隆的存储库具有该对象。
$ git cat-file -t 2dddc84156fa30e4614a7ea5a1895885011b8db8
tree
我想保留我的开发存储库,它有未推送的分支和存储。
如何将该对象修补到损坏的存储库中?
【问题讨论】:
标签: git