r/htmx • • 7d ago

.gitignore everything by default

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

2 comments sorted by

0

u/technobuddy 5d ago

Interesting inversion strategy. I'ma try this out

Initial thought.. this is safer initially. The explicitness is nice too. One annoying thing might be that you'd still need to re ignore certain files explicitly in the allow listed directories. Namely, the infamous .DS_Store files. Each subdirectory could have its own .gitignore too though to handle exceptions and scope 🤔

But it's an interesting approach to be more explicit about the files allowed in your repositories. It would make sense to have a tool or agent generate/maintain these rules as the project grows because maintaining the file manually for a very active project might be tedious.

3

u/chat-lu 2d ago

the infamous, .DS_Store

Also known as Mac herpes.