futurice/ios-good-practices

idea: adding osx gitignore

shams-ahmed opened this issue · 2 comments

Hey i always found adding OSX.gitignore to a iOS project repo has few advantages such as removing .DSStore and Thumbnails files

https://github.com/github/gitignore/blob/master/Global/OSX.gitignore

That's very opinionated. The OS related stuff should IMHO be in the user's own global .gitignore. Then you don't need to copy ignores to every new project (useful for all others projects too, not only iOS / done with XCode).

E.g. I have *.swp in global .gitignore, because occasionally I use vim (even for iOS projects) :)

$ git config --global -l
core.excludesfile=/Users/phadej/.gitignore
...
$ cat /Users/phadej/.gitignore
.DS_Store
*~
*.swp
...

as i thought very opinionated, thanks for the advice!