What if I want to compare two versions of my rule file?
Use Text Diff Checker to see which lines changed. Use this tool to check how rules affect specific paths after that comparison.
Runs in your browser. No file uploads for processing.
Test paths against a root .gitignore and see the winning line or excluded parent without uploading paths or opening a repository.
Loading tool...
Use the rules in their original order. For example, paste build/ followed by !build/keep.txt.
Enter build/keep.txt as a file and build/ with a trailing slash as a directory. Check which line wins or which parent blocks the path.
For this example, try /build/* followed by !/build/keep.txt. That excludes the folder’s contents instead of excluding the folder itself, so the exception can act.
The tool processes inputs in your browser. Account features and usage analytics are separate.
Use Text Diff Checker to see which lines changed. Use this tool to check how rules affect specific paths after that comparison.
If a rule ignores any parent directory, a child exception does not reopen that parent. Exclude contents with a wildcard or explicitly reopen the parent first.
A ! rule was the last applicable match at that path. Within this simulation, the path is not ignored. This does not tell you whether it is already tracked.
Run git check-ignore -v -- path/to/file in the repository. For an already tracked file, pass --no-index if you want to check what the ignore rules alone would say.