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": "..."}.

🤖 Use this API as a Claude Skill

Want an AI agent (Claude Code, claude.ai, or anything else that supports the Agent Skills format) to use this tool for you on request? Download the skill below and add it:

⬇️ Download SKILL.md · View raw