In this case, you could do
git rm 'solr/data/development/index/_0.*'
Pay attention to the ' labels to prevent shell expansion and instead pass * directly to git.
Here is an example:
graphite> git status # On branch master # Changes not staged for commit: # deleted: a # deleted: b # no changes added to commit graphite> git rm '*' rm 'a' rm 'b' graphite> git status # On branch master # Changes to be committed: # deleted: a # deleted: b #
Peter source share