This is not a git question, this is a sh(1) question.
The answer is that your shell expands the wildcard * by default, and the escape stops, so the git rm argument is log/*.log , not log/a.log log/b.log log/c.log .
The practical value is zero, unless you delete a log file that is not in the working tree.
source share