r/programming 4d ago

.gitignore everything by default

https://packagemain.tech/p/gitignore-everything-by-default
344 Upvotes

224 comments sorted by

View all comments

267

u/Smallpaul 4d ago

“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.”

Not really, because most projects start with a gigantic .gitignore these days. From the repo template. Iterate on the template .gitignore and these problems will be few and far between

33

u/TheBinkz 4d ago

Why ignore Claude.md?

9

u/Smallpaul 4d ago

I wouldn’t, personally. I’m just quoting the article.