Xcode 6 gitignore 文件应该包括什么? [英] What should Xcode 6 gitignore file include?

查看:31
本文介绍了Xcode 6 gitignore 文件应该包括什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 6 的典型 .gitignore 应该包括什么?

What should the typical .gitignore include for Xcode 6?

有关 Xcode 5 中引入的 xccheckout 的信息,请参见此处

Also for information regarding the xccheckout introduced in Xcode 5 see here

推荐答案

1)

最简单的答案是我的看起来像这样:

The easiest answer is that mine looks like this:

# 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/
# Pods - for those of you who use CocoaPods
Pods

我认为这与 GitHub 默认为其所有存储库设置的 .gitignore 相同.

which I believe is the same .gitignore that GitHub sets up with all their repositories by default.

2)

另一个答案是有一个 网站名为gitignore.io",它根据来自 https://github.com/github/gitignore.

Another answer is that there's a website called "gitignore.io" , which generates the files based on the .gitignore templates from https://github.com/github/gitignore.

这篇关于Xcode 6 gitignore 文件应该包括什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆