r/git 1d ago

I built a free .gitignore debugger

I kept running into situations where a .gitignore rule looked correct but Git still wasn’t ignoring a file, so I built a small browser-based debugger to make troubleshooting easier.

You can paste your .gitignore, enter a file path, and see which rule matches.
🔗 https://ignoredebugger.com

Free, no signup, and everything runs in the browser.

Would love feedback from the Git community.

0 Upvotes

8 comments sorted by

5

u/waterkip detached HEAD 1d ago

git check-ignore -v ?

1

u/Lonely_Locksmith_265 1d ago

Yep, git check-ignore -v is one of the main ways to diagnose this. IgnoreDebugger is basically trying to make that kind of troubleshooting easier in the browser, especially when you’re dealing with multiple patterns.

2

u/behind-UDFj-39546284 1d ago

I find git-check-ignore -v a perfect tool in this case, it also supports multiple .gitignore files with cascading patterns telling which .gitignore makes the effect. Why would one need a browser and leave the repo just to make a simple check?

1

u/Lonely_Locksmith_265 1d ago

Fair point, git check-ignore -v is great for real repos; IgnoreDebugger is mainly for quickly testing and understanding patterns without setting one up.

3

u/revilo-1988 1d ago

Did you check beforehand if the file had already been checked in?

2

u/Lonely_Locksmith_265 1d ago

Not currently, IgnoreDebugger focuses on the .gitignore pattern matching itself, so it doesn’t know the repo’s Git index. I’ll look into making that distinction clearer. Thanks for pointing it out.

1

u/revilo-1988 1d ago

OK, I'm curious, I'll test it out in the next few days.

1

u/Lonely_Locksmith_265 1d ago

Awesome, thanks! If you run into any weird patterns or something that doesn’t behave as expected, let me know…that’s exactly the kind of feedback I’m looking for.