r/webdev • u/der_gopher • 4d ago
Discussion .gitignore everything by default
https://packagemain.tech/p/gitignore-everything-by-default
0
Upvotes
10
1
u/therocketoffice 3d ago
The test I’d use for an allowlist is whether a fresh clone can build and run the project. A local build can pass even when a new config file or migration never made it into Git. A CI job that builds from a clean checkout would catch that.
1
u/paul_8750839 2d ago
A clean-checkout CI job is strongest when it rebuilds generated assets; restored build output can otherwise mask a missing tracked source file.
6
u/coastalwebdev full-stack 4d ago
You probably haven’t even used git before having AI write this article eh.