Git commit deleted files that match a given pattern

Extremely frustratingly, git add -u path/to/files/pattern* doesn’t seem to work, even though the path and asterisk-using pattern does for git add -p.

Combining https://discoposse.com/2016/11/08/git-remove-multiple-deleted-files/ with https://stackoverflow.com/questions/15925079/why-does-git-ls-files-ignore-require-exclude-patterns got me this:

git ls-files --deleted --exclude=config/sync/migrate_* --ignored -z | xargs -0 git rm