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

Re: Undo git-rm without commit?

From
Matthieu Moy <matthieu.moy@imag.fr>
Date
Mar 26, 2008, 09:48 UTC
Message-ID
<vpqve3995po.fsf@bauges.imag.fr>
In-Reply-To
<0535D2B4-0C4A-40D0-879A-7E0C5B3B48E4@faithfulgeek.org>
Joe Fiorini <joe@faithfulgeek.org> writes:
> Yeah, it warned me, I wasn't being careful enough.  I guess I didn't
> think it would remove from the working tree, just the repository.  My
> err for not reading the docs until _after_ the mistake.
Reading the error message would have done it also :-\.
>>  error: 'file' has changes staged in the index
>>  (use --cached to keep the file, or -f to force removal)
         ^^^^^^^^^^^^^^^^^^^^^^^^^
Good luck with lost+found, still !
-- 
Matthieu
Previous: Jeff King
Message 6 of 6 in “Undo git-rm without commit?”
  1. Joe FioriniMar 26, 2008
  2. Mike HommeyMar 26, 2008
  3. Jeff KingMar 26, 2008
  4. Joe FioriniMar 26, 2008
  5. Jeff KingMar 26, 2008
  6. Matthieu MoyMar 26, 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.