2010-06-18 35 views

回答

35
build/ 
.DS_Store 
**/*.pbxuser 
*.mode2v3 
*.mode1v3 
**/*.perspectivev* 

这是一个好的开始。

更新了戴夫的建议。

+1

+1我通常做'**/*。pbxuser',并且我还加了'* */*。perspectivev *' – 2010-06-18 04:06:32

+0

和Xcode 5的'* .xccheckout' – skywinder 2013-11-11 16:10:02

10

你也应该在Xcode 4.2排除xcworkspacexcuserdata。因此,这里是一个要忽略的iOS项目

# Exclude the build directory 
build/* 

# Exclude temp nibs and swap files 
*~.nib 
*.swp 

# Exclude OS X folder attributes 
.DS_Store 

# Exclude user-specific XCode 3 and 4 files 
*.mode1 
*.mode1v3 
*.mode2v3 
*.perspective 
*.perspectivev3 
*.pbxuser 
*.xcworkspace 
xcuserdata 
+1

xcworkspace现在不会被忽略..https://github.com/github/gitignore/blob/master/Objective-C.gitignore – 2013-03-19 17:30:12

7

从GitHub的gitignore项目,作为今天的完整列表:

# Xcode 
.DS_Store 
build/ 
*.pbxuser 
!default.pbxuser 
*.mode1v3 
!default.mode1v3 
*.mode2v3 
!default.mode2v3 
*.perspectivev3 
!default.perspectivev3 
*.xcworkspace 
!default.xcworkspace 
xcuserdata 
profile 
*.moved-aside 
DerivedData 
.idea/ 

来源:https://github.com/github/gitignore/blob/master/Objective-C.gitignore

+0

+1谢谢,不知道这个回购存在。 – 2013-01-06 22:36:58

相关问题