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
Globs power .gitignore, build tool ignore lists, and file watchers. This tester runs minimatch-style matching entirely in your browser — no upload. Use .gitignore mode to preview what Git would ignore, including the parent-directory exclusion rule that trips people up.
~~~