ProAnswers.org

Which files should I include in .gitignore in X-Code

Which files should I include in .gitignore when using Git in conjunction with Xcode?

Based on [this guide for Mercurial](http://boredzo.org/blog/archives/2008-03-20/hgignore-for-mac-os-x-applications) my .gitignore includes:

.DS_Store
*.swp
*~.nib

build/

*.pbxuser
*.perspective
*.perspectivev3

I've also chosen to include:

*.mode1v3
*.mode2v3

which, according to [this Apple mailing list post](http://lists.apple.com/archives/Xcode-users/2007/Oct/msg00465.html), are "user-specific project settings".



And for Xcode 4:

xcuserdata