Really such editor-related gitignore entries should go in the user&#x27;s core.excludesfile, not repository&#x27;s .gitignore<p>Its unlikely that anyone would try to make a file that conflicts with an editor-related gitignore entry, but it&#x27;s nice to have the .gitignore file cleanly delineate exactly what garbage the build system and application create, without being cluttered up with entries for every editor that any developer might ever use.<p><a href="http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;7335420&#x2F;global-git-ignore" rel="nofollow">http:&#x2F;&#x2F;stackoverflow.com&#x2F;questions&#x2F;7335420&#x2F;global-git-ignore</a>