Which files should I include in .gitignore
when using Git in conjunction with Xcode?
Xcode – Git ignore file for Xcode projects
gitgitignoremacosversion controlxcode
Related Topic
- Git – the difference between ‘git pull’ and ‘git fetch’
- Git – How to undo ‘git add’ before commit
- Git – How to undo the most recent local commits in Git
- Git: How to force “git pull” to overwrite local files
- Git – How to make Git “forget” about a file that was tracked, but is now in .gitignore
- Git – How to check out a remote Git branch
- Git – How to delete a Git branch locally and remotely
- Git – How to rename a local Git branch
Best Answer
I was previously using the top-voted answer, but it needs a bit of cleanup, so here it is redone for Xcode 4, with some improvements.
I've researched every file in this list, but several of them do not exist in Apple's official Xcode documentation, so I had to go on Apple mailing lists.
Apple continues to add undocumented files, potentially corrupting our live projects. This IMHO is unacceptable, and I've now started logging bugs against it each time they do so. I know they don't care, but maybe it'll shame one of them into treating developers more fairly.
If you need to customize, here's a gist you can fork: https://gist.github.com/3786883