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

Broken index file - any hope?

From
JSJonas Schneider <jonasschneider@gmx.de>
Date
Oct 3, 2008, 21:51 UTC
Message-ID
<48E693E9.708@gmx.de>
Hey guys,

I come from the Ruby on Rails world, where Git is now spreading like ... duh, something fast. Today I sadly lost my complete .git directory, only the working copy was left behind. I reconstructed the directory, but the index file seems to be corrupt, every command just tells me about a bad signature. I hope the rest of the repository is intanct. If it is, is there any chance to restore/rebuild that index file from the rest? I don't have an idea of the internals of git, but I know the objects are stored in different files, and maybe on top of that I could rebuild the index file.

Any hope? Thanks, --Jonas Schneider

Next: Shawn O. Pearce
Message 1 of 6 in “Broken index file - any hope?”
  1. Jonas SchneiderOct 3, 2008
  2. Shawn O. PearceOct 3, 2008
  3. Jonas SchneiderOct 3, 2008
  4. Shawn O. PearceOct 3, 2008
  5. Jeff WhitesideOct 3, 2008
  6. Linus TorvaldsOct 4, 2008

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.