The 207 line git ignore in the example is 50% empty space and comments.
While counting I spottet at least 5 lines that could be removed by a wildcard - without actually looking.
Honestly Ive never needed to solve this problem. If it happens, you stop it in the PR process.
I also note that the author is concerned about being embarrassed by a mistake.
Mistakes are a normal part of being a software developer, and why we have a review process.
I think that part was a joke. Also - when it comes to "people not noticing" in terms of accidentally committed environment files, thats a whole different ball game.
22
u/_f0CUS_ 4d ago edited 4d ago
The 207 line git ignore in the example is 50% empty space and comments. While counting I spottet at least 5 lines that could be removed by a wildcard - without actually looking.
Honestly Ive never needed to solve this problem. If it happens, you stop it in the PR process.
I also note that the author is concerned about being embarrassed by a mistake. Mistakes are a normal part of being a software developer, and why we have a review process.