← early.
Ignore TraceEverywhere / Get things done
All tools ↗

Test a Path Against .gitignore Rules

Paste the contents of a root .gitignore file and enter a path relative to the repository root. Ignore Trace shows the last matching rule and checks ancestor directories, so you can spot when an excluded parent prevents a file from being included again. It models one root .gitignore for untracked paths; Git also reads nested ignore files and other exclude sources, and ignore rules do not affect files already tracked.

How to use Ignore Trace

  1. Paste root .gitignore rules, one pattern per line, including any later ! exceptions.
  2. Enter a repository-relative file path such as dist/report.txt; use forward slashes and no leading slash.
  3. Read the deciding line and parent-directory note, then edit the rules and check the actual repository with git check-ignore -v.