As you might be aware, git supports global
gitignore files, allowing us to define ignore patterns for files across system.
The global gitignore is best reserved for patterns for things like:
- OS-specific junk (
- editor-specific stuff (
- personal notes etc (e.g.
Everyone needs different combinations of these—repositories’ local
.gitignores shouldn’t be cluttered with these.
.gitignore should, instead, hold project-specific patterns. These may be related to your dependency management tools, frameworks, coverage checking tools, the rest.
This isn’t an original thought by any means, but it’s a big pet-peeve 🐶.