.gitignore Everything by Default

der_gopher · Sep 5, 2026 · via RSS

.gitignore everything by default

An opposite view on .gitignore files.

Alex Pliutau's avatarAlex PliutauSep 05, 2026∙ Paid

I think we’ve all been there. You’re working on a project, making commits, and then suddenly realize you’ve been committing .DS_Store files, node_modules, IDE configuration files, or other junk (CLAUDE.md for example) that shouldn’t be in your repository. Or even worse - environment variables. Then comes the embarrassing cleanup: adding these files to .gitignore, removing them from the repository history, and hoping that no one has noticed.

What if we flipped this approach entirely? Instead of allowing everything by default and selectively ignoring files, what if we ignored everything by default and only allowed specific files?

User's avatar

Continue reading this post for free, courtesy of Alex Pliutau.

Or purchase a paid subscription.

Comments

Sign in to join the discussion.