"git rm" seems to do recursive removal even without "-r"
- From
Robert P. J. Day <rpjday@crashcourse.ca>
- Date
- Oct 7, 2017, 18:39 UTC
- Message-ID
- <alpine.LFD.2.21.1710071436140.14843@localhost.localdomain>
was just testing variations of "git rm", and man page claims:
-r
Allow recursive removal when a leading directory name is given.i tested this on the "pro git" book repo, which contains a top-level "book/" directory, and quite a number of "*.asc" files in various subdirectories one or more levels down. i ran:
$ git rm book/\*.asc
and it certainly seemed to delete *all* "*.asc" files no matter where they were under book/, even without the "-r" option.
am i misunderstanding something?
rday
--
========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca
Twitter: http://twitter.com/rpjday
LinkedIn: http://ca.linkedin.com/in/rpjday
========================================================================