DEVELOPER & CODE · LOCAL WORKBENCH

Glob Pattern Tester

Compare shell globs and gitignore matching against repository paths, including root anchoring, recursive stars and negation.

DEVELOPER & CODE · LOCAL WORKBENCH · BROWSER WORKSPACE

Same paths. Two glob dialects. See where they split.

Compare shell globs and gitignore matching against repository paths, including root anchoring, recursive stars and negation.

GLOB PATTERN TESTERLOCAL · NO UPLOAD
1 · PATTERNSOne per line · ! re-includes in gitignore
Both checks run locally in your browser. Real Git also considers nested .gitignore files and whether each matched path is a directory.
DIALECT COMPARISON11 PATHS TESTED
GITIGNORE8matched paths
SHELL GLOB5matched paths
DIFFERENCES5paths differ
5 results differ. The same line can have different consequences in a repository ignore file and a build tool.
node_modules/react/index.jsgitignore✓node_modulesshell glob—DIFFERS
packages/web/node_modules/lodash.jsgitignore✓node_modulesshell glob—DIFFERS
app.loggitignore✓*.logshell glob✓*.log
logs/build.loggitignore✓*.logshell glob—DIFFERS
src/a/b/util.test.jsgitignore✓src/**/*.test.jsshell glob✓src/**/*.test.js
src/keep.test.jsgitignore—!src/keep.test.jsshell glob✓src/**/*.test.jsDIFFERS
src/deep.test.jsgitignore✓src/**/*.test.jsshell glob✓src/**/*.test.js
dist/bundle.jsgitignore✓/distshell glob—DIFFERS
build/dist/old.jsgitignore—shell glob—
config/db.jsongitignore✓config/*.jsonshell glob✓config/*.json
config/env/prod.jsongitignore—shell glob—
◎

Runs in this browser. Shell glob and gitignore simulations run locally. Git may also read nested ignore files and inspect whether a path is a directory.

Back to the tool library ↗

Need a feature from the original version? Open the current ECECH tool

How this app works

Compare shell globs and gitignore matching against repository paths, including root anchoring, recursive stars and negation. Results update as you adjust inputs and stay in this browser.