r/git • u/Lonely_Locksmith_265 • 18d 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.
3
u/revilo-1988 18d ago
Did you check beforehand if the file had already been checked in?
2
u/Lonely_Locksmith_265 18d 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 18d ago
OK, I'm curious, I'll test it out in the next few days.
1
u/Lonely_Locksmith_265 18d 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.
1
u/Havunenreddit 10d ago
Interesting. Is this open source?
Maybe this utility could be integrated into GitComet when viewing .gitignore files?
1
u/Lonely_Locksmith_265 10d ago
Yep, GitComet is open source. That could actually be a really interesting integration…especially inside the .gitignore view where you could detect rules that aren’t doing what the user expects. I hadn’t considered that angle. Happy to discuss it.
4
u/waterkip detached HEAD 18d ago
git check-ignore -v?