I prefer to put ignore of systems and ides in the global ignore file:
My `~/.gitignore_global`:
```
*~
.idea

# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
```