当Git与Xcode一起使用时,我应该在.gitignore中包含哪些文件?
当前回答
我同时使用AppCode和XCode。 所以.idea/应该被忽略。
把这个加到亚当的。gitignore上
####
# AppCode
.idea/
其他回答
对于Xcode 5,我添加:
####
# Xcode 5 - VCS metadata
#
*.xccheckout
选自Berik的答案
我使用以下在gitignore.io中生成的.gitignore文件:
### Xcode ###
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.xcuserstate
### Objective-C ###
# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
#
Pods/
你应该结账给gitignore。用于Objective-C和Swift。
下面是我正在使用的.gitignore文件:
# Xcode
.DS_Store
*/build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xccheckout
*.xcworkspace
!default.xcworkspace
#CocoaPods
Pods
我的是一个。bzrignore,但它是相同的想法:)
.DS_Store
*.mode1v3
*.pbxuser
*.perspectivev3
*.tm_build_errors
tm_build_errors用于当我使用TextMate构建我的项目时。它没有Hagelin那么全面,但我认为值得在tm_build_errors行中发布它。
基于Mercurial的这个指南,我的.gitignore包括:
.DS_Store
*.swp
*~.nib
build/
*.pbxuser
*.perspective
*.perspectivev3
我还选择了包括:
*.mode1v3
*.mode2v3
根据苹果邮件列表,这是“用户特定的项目设置”。
对于Xcode 4:
xcuserdata
推荐文章
- 访问限制:'Application'类型不是API(必需库rt.jar的限制)
- 为什么在Mac OS X v10.9 (Mavericks)的终端中apt-get功能不起作用?
- Ios模拟器:如何关闭应用程序
- 为什么我需要显式地推一个新分支?
- 如何撤消最后的git添加?
- 准备好开发人员ID的macOS安装程序包
- Rubymine:如何让Git忽略Rubymine创建的.idea文件
- Gitignore二进制文件,没有扩展名
- Git隐藏错误:Git隐藏弹出并最终与合并冲突
- 创建配置文件失败
- “你有邮件”的消息在终端,os X
- 了解Git和GitHub的基础知识
- 没有。Git目录的Git克隆
- Git与Mercurial仓库的互操作性
- 忽略git中修改(但未提交)的文件?