.DS_Store and git / github

When you are checking in an Xcode-based project into git (pushed up to github), should

you check in the .DS_Store files that appear? Or do these get re-generated

automatically by OSX if they are not there (say, when you git clone a project?)

Replies

My .gitignore includes


# OS-specific files
.DS_Store
.Trashes
Thumbs.db


They are generated when the Finder looks at a folder.

Now we have notarization .DS-Store files are a potential problem. I copied a notarized package over to another disk and Finder inserted .DS-Store files into the package folder structure, which invalidated the notarization. Come on Apple you have got to admit that is pretty dumb!