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

how to recover a repository

From
Ddavid@lang.hm <david@lang.hm>
Date
Dec 17, 2010, 04:28 UTC
Message-ID
<alpine.DEB.2.00.1012162024020.22269@asgard.lang.hm>

I managed to do a 'rm *' in the .git directory (the usual sort of fat-fingering when cleaning up after another mistake)

the subdirectories are still there.

this is just a local repository, it won't kill me if I loose everything (as I still have the most recent working files), but I'd like to recover what I can.

what can I do to get things back in a usable state?
David Lang
Next: Jonathan Nieder
Message 1 of 5 in “how to recover a repository”
  1. david@lang.hmDec 17, 2010
  2. Jonathan NiederDec 17, 2010
  3. david@lang.hmDec 17, 2010
  4. Jeff KingDec 17, 2010
  5. david@lang.hmDec 17, 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.