简体   繁体   English

Xcode 4和git问题

[英]Xcode 4 and git issue

The base project is managed in git of Xcode 4. Then, I have another project that will use also the same base code but different UI only. 基本项目在Xcode 4的git中进行管理。然后,我有另一个项目,该项目也将使用相同的基本代码,但仅使用不同的UI。 How I can copy the base project or do I need to add another working local copy? 如何复制基础项目,或者需要添加另一个有效的本地副本?

If the two programs are closely related, you could simply stay within the project, but creating a new branch for that variation (See XCode4 SCM guide ): 如果这两个程序密切相关,则可以直接停留在项目中,但可以为该变体创建一个新分支(请参阅XCode4 SCM指南 ):
You would stay in the same local copy, but you would update your local working tree, switching from one branch to another. 您将保留在相同的本地副本中,但是您将更新本地工作树,从一个分支切换到另一个分支。

XCode4中的分支

That may be simpler that trying to use submodules in this case (unless you have many projects reusing the same base code). 在这种情况下,尝试使用子模块可能会更简单(除非您有许多项目在使用相同的基本代码)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM