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.
0
u/technobuddy 6h 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.