与Xcode 5一起使用Git时,我应该在.gitignore
中包括哪些文件?
使用它忽略二进制文件和项目文件
# Created by http://www.gitignore.io
### Objective-C ###
# OS X
.DS_Store
# Xcode
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
profile
*.moved-aside
DerivedData
*.hmap
*.ipa
# CocoaPods
Pods
### Xcode ###
build
*.xcodeproj/*
!*.xcodeproj/project.pbxproj
!*.xcworkspace/contents.xcworkspacedata
对我来说,此基本设置适用于大多数项目:
.DS_Store
xcuserdata