Quantcast
Channel: User Schwern - Stack Overflow
Viewing all articles
Browse latest Browse all 581

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

$
0
0

My development repository at some point lost an object.

$ git fsckfatal: failed to read object 2dddc84156fa30e4614a7ea5a1895885011b8db8: Invalid argument$ git cat-file -t 2dddc84156fa30e4614a7ea5a1895885011b8db8error: unable to find 2dddc84156fa30e4614a7ea5a1895885011b8db8fatal: git cat-file 2dddc84156fa30e4614a7ea5a1895885011b8db8: bad file

A freshly cloned repository has that object.

$ git cat-file -t 2dddc84156fa30e4614a7ea5a1895885011b8db8tree

I would like to keep my development repository, it has unpushed branches and stashes.

How can I patch that object into my broken repository?


Viewing all articles
Browse latest Browse all 581

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>