什么是在 iPhone(Xcode)项目中被认为是 '.gitignore' 文件的“标准”内容?
PS:不确定是否需要将此设为 CW。
什么是在 iPhone(Xcode)项目中被认为是 '.gitignore' 文件的“标准”内容?
PS:不确定是否需要将此设为 CW。
build/
.DS_Store
**/*.pbxuser
*.mode2v3
*.mode1v3
**/*.perspectivev*
这是一个不错的开始。
根据Dave的建议进行了更新。
**/*.pbxuser
,我还会添加 **/*.perspectivev*
。 - Dave DeLong在Xcode 4.2中,您还应该排除xcworkspace
和xcuserdata
。因此,以下是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
根据今天的GitHubgitignore
项目:
# 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
这是一个Objective-C的.gitignore文件示例,用于Git版本控制系统中。该文件列出了应该忽略的文件和目录,以便在提交代码时不包括不必要的文件。