git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Recover broken git repository?

From
FBFlorian Breitwieser <florian.bw@gmail.com>
Date
Jul 14, 2009, 13:20 UTC
Message-ID
<1247577632053-3255106.post@n2.nabble.com>

Hi, I have problems with my git repository, attached below are the steps I tried to resolve it. But now I am stuck. Is there any good way to recover?

Thank you Florian

-- 
Florian Breitwieser
PhD Student

Research Center of Molecular Medicine
of the Austrian Academy of Science

-------------------

$ git commit -m "Some message"
error: invalid object 1086b1c606a04bcb78b92d1d411a299d20d18034
fatal: Error building trees

$ git-fsck --full
dangling tree c2549a3cdd83098a523cb707f217f4656cde7eb5

$ git prune
$ git commit -m "Some message"
Created commit e32d5dd: Some message
 2 files changed, 167 insertions(+), 10 deletions(-)

$ git push
Counting objects: 15, done.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (8/8), 2.44 KiB, done.
Total 8 (delta 4), reused 0 (delta 0)
Unpacking objects: 100% (8/8), done.
fatal: unresolved deltas left after unpacking
error: unpack failed: unpacker exited with error code
To /mnt/extstore2/bioinformatic/git/ppi.git
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to
'/mnt/extstore2/bioinformatic/git/ppi.git'

-- 
View this message in context: http://n2.nabble.com/Recover-broken-git-repository--tp3255106p3255106.html
Sent from the git mailing list archive at Nabble.com.
Next: Alex Riesen
Message 1 of 9 in “Recover broken git repository?”
  1. Florian BreitwieserJul 14, 2009
  2. Alex RiesenJul 14, 2009
  3. Nicolas SebrechtJul 14, 2009
  4. Jakub NarebskiJul 14, 2009
  5. Linus TorvaldsJul 14, 2009
  6. Stefan-W. HahnJul 14, 2009
  7. Stefan-W. HahnJul 14, 2009
  8. Improve on the 'invalid object' error message at commit timeLinus Torvalds, Jul 14, 2009
  9. Junio C HamanoJul 14, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.