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

Re: Recover broken git repository?

From
Jakub Narebski <jnareb@gmail.com>
Date
Jul 14, 2009, 15:20 UTC
Message-ID
<m3eisjuw8d.fsf@localhost.localdomain>
In-Reply-To
<20090714145432.GA12928@vidovic>
Nicolas Sebrecht <nicolas.s.dev@gmx.fr> writes:
Show 7 quoted lines
> The 14/07/09, Florian Breitwieser wrote:
> 
> > 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?
> 
> You could git-format-patch your topics, clone a new repo and git-am the
> patches.

Better solution, if possible, would be to use git-fast-export / git-fast-import pair.

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Nicolas SebrechtNext: Linus Torvalds
Message 4 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.