Conversation
|
While it is true that ignoring We could of course provide an additional layer and ignore OS specific files in project level, too (since iOS development is mainly done on a Mac), but in that case we should cover all OS specific files. For example we could include all not already added file paths from OS X and Xcode files in the gitignore project on GitHub. I'm usually not a fan of this approach when working with my colleagues, but maybe for open source projects this is necessary. What do you think? |
|
This is the .gitignore file I usually use http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects. I did intend to have it setup as my global .gitignore but I just realized that I need to use git config to set it as the global .gitignore and didn't have it set. That's the reason I was seeing the .DS_Store files in my git status results. I can't think of any reason that someone would want to commit DS_Store files or have them interact with git in any way. I don't think there are any other kind of OS X files that might find their way into a git workspace. I do always have .DS_Store in my .gitignore files, both local and the global one but I understand your reasoning that the global .gitignore should have this covered. So I think it should be in the local .gitignore but I can live without it if you really prefer it not be there. |
|
No worries, as I stated earlier I find it good that it is present for public projects. I just wanted to make sure we also cover other files if there are any. But DS_Store seems to be good for now. Merging it. |
DS_Store files should never be committed and they show up in git status if they aren't gitignored.