Layer multiple includes and excludes in one command.
Section: Glob filters
Combine several globs
bash
bash
rg --glob '*.ts' --glob '!*.d.ts' 'RequestInit' src/Explanation
Multiple globs give precise control without editing ignore files.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Glob filters