Remove matching files from a branch

git filter-repo --refs <branch> --invert-paths --path-glob '*.res.js'