Globs, Types, and Ignore Rules/Explain ignore and glob decisions

Inspect why paths are included or excluded.

Section: Glob filters

Explain ignore and glob decisions

bash
bash
rg --debug --glob '!vendor/**' 'openssl' .
Explanation

`--debug` is the fastest way to understand why an expected file did not appear.

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
Search only JavaScript files
Restrict matches to paths matching a glob.
OpenIn sheetbashsame section
Exclude generated files
Skip minified files during search.
OpenIn sheetbashsame section
Exclude build directories
Ignore an entire directory subtree.
OpenIn sheetbashsame section
Combine several globs
Layer multiple includes and excludes in one command.
OpenIn sheetbashsame section
Search only Rust files
Use a built-in type definition.
OpenIn sheetbash1 tag match
Include hidden files
Search dotfiles and hidden directories too.
OpenIn sheetbash1 tag match