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

rebuild repo from data, packfiles?

From
TFtom fogal <tfogal@sci.utah.edu>
Date
Nov 20, 2010, 22:54 UTC
Message-ID
<auto-000024044659@sci.utah.edu>

Long story short, I lost some metadata in a repo I've got. However, my entire .git/objects/ && subdirs is intact, so I'm hopeful my data's still accessible in some form.

I'm trying to piece together the git metadata that goes in .git (no subdirs) based on what I've got in other repos && what fails when I strace git, in hopes I can rebuild my reflog to grab all the work I only had locally. Currently I can't `log' or `reflog' or really anything, because git thinks this directory isn't a git repo.

I'm curious if there's ideas out there for rebuilding my repo based on the repo's data. Is there a command I could point at .git/objects and have it repopulate the repo?

Thanks,
-tom
Next: Jonathan Nieder
Message 1 of 7 in “rebuild repo from data, packfiles?”
  1. tom fogalNov 20, 2010
  2. Jonathan NiederNov 21, 2010
  3. tom fogalNov 21, 2010
  4. Jonathan NiederNov 21, 2010
  5. tom fogalNov 21, 2010
  6. Jonathan NiederNov 21, 2010
  7. tom fogalNov 21, 2010

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.