3 ms·
It would also come into play of you add code that generates files which should be ignored, but you don't realize the gitignore has to be updated because it's ig
by CorrectHorseBat 4y ago
It would also come into play of you add code that generates files which should be ignored, but you don't realize the gitignore has to be updated because it's ignored in your own global gitignore.
- diarrhea 4y agoVery good observation. That's a reason I'm itching to try out an approach akin to this (in a future project): https://jasonstitt.com/gitignore-whitelisting-patterns https://jasonstitt.com/gitignore-whitelisting-patterns
- nishs 4y agoExcellent point! Tangentially, to prevent scenarios where generated code becomes out of sync, in your CI you should always re-run generators and check that `git status` shows no entries (and fail the build if it does).