Gitignore and Glob Pattern Tester
Paste .gitignore rules and file paths and see which paths are ignored and by which line, or test glob patterns with braces and double stars.
- Free
- No sign-up
- Works on any device
About Gitignore and Glob Pattern Tester
Git reads a .gitignore from top to bottom and the last matching rule wins, which is why a later line starting with an exclamation mark can bring a file back. This tester follows those rules: a pattern with a slash in the middle is anchored, a star never crosses a slash, double stars cross folders, a trailing slash matches folders only, and nothing inside an ignored folder can be re-included. Paste your rules and a list of paths and each path shows Ignored or Not ignored with the deciding line number. Switch to glob mode to test patterns such as src/**/*.{js,ts}.
How to use Gitignore and Glob Pattern Tester
- Choose gitignore rules or glob patterns and paste the rules, one per line.
- List the paths to test, adding a slash at the end of folders.
- Read the Result and Deciding rule columns to see which line decided each path.
Why use this tool?
- Private: everything happens in your browser. Nothing you enter is uploaded.
- Free, with no sign-up, no watermark and no limit on how often you use it.
- Works on phones, tablets and computers: Android, iPhone, Windows, Mac and Linux. Nothing to install.
Also known as
Frequently asked questions
Why is a file still ignored after I added a negation rule?
If a parent folder is ignored, Git never looks inside it, so a rule such as an exclamation mark followed by a file name cannot bring it back. Ignore the folder contents with folder/* instead and then re-include the file.
Does a pattern without a slash match in subfolders?
Yes. A pattern like *.log has no slash, so it matches at every depth. A pattern with a slash, such as docs/*.md or a leading slash, is anchored to the folder that holds the .gitignore.
Does this read my real repository?
No, it only checks the text you paste. It does not combine nested .gitignore files, .git/info/exclude or your global ignore file, and files that Git already tracks stay tracked even when a rule matches them.
Is Gitignore and Glob Pattern Tester free?
Yes. Gitignore and Glob Pattern Tester on Toolipedia is free to use, with no sign-up and no watermark.
Is it safe to use?
Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.
Does it work on my phone?
Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.
Do I need an account?
No. Just open the page and use the tool. There's no sign-up and no email needed.