Best way to handle these sorts of files is to [create a global gitignore file](https://help.github.com/articles/ignoring-files#create-a-global-gitignore) on your machine. This way you can ignore all your system-specific files without needing to change individual project's gitignores.