Don't Put Every Ignored File in Your Project's .gitignore

It's tempting to add every unwanted file to a project's .gitignore. After all, if Git stops showing the file, the problem is solved—right? Not quite. A project's .gitignore is part of the repository. Every rule you add affects every contributor. Because of that, it should only ignore files that are irrelevant to the project, not files that are only irrelevant to you. Ask yourself one simple question: Is this file generated by the project, or is it generated by my local development environment? I