Git Conventional Commit & URL Converter
About Gitignore Pattern Tester
The `.gitignore` Glob Pattern Matcher & Rule Tester tests `.gitignore` rules against file path lists, simulating Git directory matching, negation patterns (`!`), directory wildcards (`**/`), and character ranges in real time.
How to Use Gitignore Pattern Tester
Step 1
Paste your `.gitignore` rules in the left pane.
Step 2
Enter file paths to test in the right pane (one per line).
Step 3
Inspect the live Ignored vs Tracked status table.
Step 4
Click "Copy Diagnostic Report".
Practical Use Cases for Gitignore Pattern Tester
Debugging Why Files Are Accurately or Inadvertently Ignored
Test complex glob patterns (e.g. `!build/keep.me`, `*.log`, `temp/**/cache`) against file lists to verify ignore behavior before committing.
Optimizing Monorepo `.gitignore` Rules
Verify nested package ignore rules across multi-tier monorepos with hundreds of source files.
Input & Output Examples
Testing Glob Match for Node Modules and Build Output
Pattern: `node_modules/` | Test Paths: `app/node_modules/pkg/index.js`, `src/app.ts`
`app/node_modules/pkg/index.js` $\\rightarrow$ 🚫 IGNORED | `src/app.ts` $\\rightarrow$ ✅ TRACKED
Key Features & Performance
- ✓Simulates Git fnmatch glob semantics: `*`, `**`, `?`, `[a-z]`, negation (`!`), trailing slash directory matching.
- ✓Interactive testing table showing live Match / Tracked status for each file path.
- ✓Highlights which exact line in `.gitignore` caused each file to be ignored.
- ✓100% Client-Side memory execution.
- ✓1-Click Copy rule test report.
Key Terminology & Definitions
Git Pathspec Globbing
The pattern matching syntax used by Git in `.gitignore` and CLI path arguments, featuring double-star (`**`) recursive wildcards.
Negation Rule (`!`)
A pattern starting with an exclamation mark that re-includes a previously ignored file or directory.
