Git best practice is to put this into a global .gitignore file, as described in [Using Git / Ignoring files](https://help.github.com/articles/ignoring-files).