I have used this post Removing multiple files from a Git repo that have already been deleted from disk to figure out how to remove multiple files with git rm at once.
Now, I'd like to do this, excluding one directory. I tried this:
git rm $(git ls-files --deleted --exclude='sites/all/modules/imagecache_actions/')
but it didn't work. Am I misusing the exclude tag?