by flysand7 · 1y ago · 0 comments
Once I complained about this to the community someone suggested a clever gitignore hack:
*
!*/
!*.*
This by default ignores all files, except those that have a suffix and directories. I think this is a useful lesson - if you flip which files you ignore you can change the failure mode from "I accidentally committed a huge file into a repo" to "why isn't it working?". The latter can be pretty much be answered by good CI testing (maybe not always though).No comments yet.