# documentation for git-rm

1 messages from 2007-01-16 to 2007-01-16. Participants: Goetz, Philip (NIH/NLM/LHC) [C].
Thread: https://gitlist.dev/t/6405

## Goetz, Philip (NIH/NLM/LHC) [C], 2007-01-16 17:48

Subject: documentation for git-rm
Message-ID: <7A7EC09F0481DB46BC1EF0B0A9844CDB16D463@NIHCESMLBX8.nih.gov>
URL: https://gitlist.dev/e/7A7EC09F0481DB46BC1EF0B0A9844CDB16D463%40NIHCESMLBX8.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.

```
