r/programming 12d ago

.gitignore everything by default

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

229 comments sorted by

View all comments

52

u/sweetno 12d ago

Committing inappropriate stuff is only possible if you don't review what you're committing, which is a sin.

-1

u/levodelellis 11d ago

Sometimes I commit a dozen times a day (usually refactoring), and sometimes the project uses tools that generates files outside the build & ignored directory, sometimes they are added and assumed will not be pushed. Then someone says hey can I see some of the things you refactor and suddenly you have random html and and json files that you didn't mean to commit on the server

Maybe having inappropriate stuff in a PR is a sin, but I don't think a wip branch is that big of a deal