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

documentation for git-rm

From
G[Goetz, Philip (NIH/NLM/LHC) [C] <goetzp@mail.nih.gov>
Date
Jan 16, 2007, 17:48 UTC
Message-ID
<7A7EC09F0481DB46BC1EF0B0A9844CDB16D463@NIHCESMLBX8.nih.gov>

Hello! The documentation for git-rm at http://www.kernel.org/pub/software/scm/git/docs/git-rm.html says

EXAMPLES
git-rm Documentation/\*.txt
    Removes all *.txt files from the index that are under the
Documentation directory and any of its subdirectories. The files are not
removed from the working tree.
I think that this should say
git-rm --cached Documentation/\*.txt
?

Otherwise I don't see why it wouldn't remove the files from the working tree. If this is a documentation error, it could cause some bad problems for people who follow it.

Message 1 of 1 in “documentation for git-rm”
  1. Goetz, Philip (NIH/NLM/LHC) [C]Jan 16, 2007

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.