Glob pattern tester
Enter glob patterns (one per line) and a file list — see which paths match. Toggle .gitignore mode for last-match-wins semantics. Pattern syncs to the URL.
Mode
Last matching rule wins. You cannot re-include a file inside an excluded parent directory — see thegitignore generator.Any positive match includes the path; ! patterns exclude.
Patterns (one per line)
File list (one path per line)
Per-pattern counts
— Results
Pattern syntax
| Token | Meaning |
|---|---|
|
About this tool
Glob patterns match file paths with wildcards — not regular expressions.** crosses directories, ? matches one character, and [abc] matches a character class.
They power .gitignore, bundler ignore lists, and file watchers. .gitignore uses last-match-wins rules and cannot re-include files inside an excluded parent directory — a common source of "why is Git still tracking this?" confusion.
This tester runs minimatch-style matching in your browser. Toggle .gitignore mode to preview what Git would ignore before you commit a broken ignore file.