我可以排除哪些Xcode项目文件?从我的git回购中? [英] Which Xcode project files can I 'exclude' from my git repo?

查看:47
本文介绍了我可以排除哪些Xcode项目文件?从我的git回购中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个iOS项目,并且正在使用git进行版本控制.我正在与另一位开发人员合作.

I'm working on an iOS project and am using git to do version control. I'm working on this with another developer.

我应将哪些Xcode项目文件保存在存储库中,并排除哪些文件,以免对其他开发人员造成负面影响?

Which Xcode project files should I keep in the repo and which ones can I exclude so that it doesn't affect the other developer negatively?

以下是git告诉我的一些非代码文件已被修改或添加...(顺便说一句,如果您为YourProject.xcodeproj文件显示包内容",则只能在OSX文件管理器中查看这些内容)

Here are some of the non-code files that git is telling me has been modified or added... (BTW, these are only viewable in the OSX file manager if you "Show Package Contents" for YourProject.xcodeproj file)

排除?

  • contents.xcwordspacedata(我认为这只是工作区设置)
  • UserInterfaceState.xcuserstate(基于似乎只针对我自己的名称)
  • Breakpoints.xcbkptlist(...我的断点设置)

包含?

  • project.pbxproj(包含...项目设置)
  • *.xscheme(包括...方案定义)
  • xschememanagement.plist(包括...计划管理器设置吗?)

这看起来正确吗?

(对于要使用git的排除功能的用户来说,仅供参考.在本地存储库中编辑.git/info/exclude文件.将文件或文件样式放入git忽略.对于例如,如果您想让git忽略foo.temp,bar.temp,则可以在文件中放置一行* .temp)

(Just an FYI for those that want to use the exclude feature of git. Edit your .git/info/exclude file in your local repository. Put in the files or the patterns for files that you want git to ignore. For example, if you want git to ignore foo.temp, bar.temp you can put a line in the file that says *.temp)

推荐答案

本网站(www.gitignore.io)让您指定您的IDE和/或语言,并向您显示一个量身定制的.gitignore-很棒的网站!

This site (www.gitignore.io) lets you specify your IDE and or language and shows you a tailored .gitignore - Awesome site!

这篇关于我可以排除哪些Xcode项目文件?从我的git回购中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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