When developing on the Mac, using Git as your version control system, one of the first things you’ll notice is that Git adds
.DS_Store files to your repository.
This is not needed, as .DS_Store basically just handles settings on the directory it’s in, and as such it’s useless to share this with other developers. You can ignore the files per repository, but the best approach is usually to ignore it on a global level. Here is how to do it.