Illustration of a file path being checked against .gitignore patterns and marked ignored or tracked

Gitignore Pattern Tester

Paste a .gitignore and test whether a path would be ignored — using git's real matching rules (negation with !, directory-only trailing /, root-anchoring, and all three forms of **). The last matching pattern wins, same as real git. Runs entirely in your browser.


💻 Show API usage examples (cURL)
curl -sS -X POST https://devops.majbase.com/gitignore-tester/api -H "Content-Type: application/json" \
  -d '{"gitignore":"*.log\n!important.log","path":"app.log"}'

Returns {"ignored", "matched_rule"}, or {"error": "..."}.