X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-rm.txt;h=71e3d9fc23ab6f1c181c47ebb7c9483950a9e9a6;hb=154adcf9c08218077275f7a4c7a6e61632516561;hp=d146751caacc163d3f905fba726c2475baa4098e;hpb=438ded457b6e0d1e615edd593faeeafdc8818fea;p=git.git diff --git a/Documentation/git-rm.txt b/Documentation/git-rm.txt index d146751ca..71e3d9fc2 100644 --- a/Documentation/git-rm.txt +++ b/Documentation/git-rm.txt @@ -136,11 +136,11 @@ git diff --name-only --diff-filter=D -z | xargs -0 git rm --cached EXAMPLES -------- -git rm Documentation/\\*.txt:: - Removes all `\*.txt` files from the index that are under the +git rm Documentation/\*.txt:: + Removes all `*.txt` files from the index that are under the `Documentation` directory and any of its subdirectories. + -Note that the asterisk `\*` is quoted from the shell in this +Note that the asterisk `*` is quoted from the shell in this example; this lets git, and not the shell, expand the pathnames of files and subdirectories under the `Documentation/` directory.