How can I repair a git repository with a missing object?

前端 未结 3 772
暗喜
暗喜 2021-02-19 16:59

My development repository at some point lost an object.

$ git fsck
fatal: failed to read object 2ffffdc84156fa30e4614a7ea5a1895885011b8db8: Invalid argument
$ git          


        
3条回答
  •  花落未央
    2021-02-19 17:35

    What you can try, is to get the file .git/objects/2d/ddc84156fa30e4614a7ea5a1895885011b8db8 from the freshly cloned repository and copy it to your development repo ...

提交回复
热议问题