English 中文(简体)
• 如何配置Xcode Workspace的GIT储存库,并安排多个项目
原标题:How to configure GIT repository in Xcode Workspace with multiple projects

这比我已经掌握了全球信息技术手册的“how”更是一个正确战略的问题。

I have an Xcode workspace. It contains 3 sub projects.

  1. iPad app
  2. iPhone app
  3. shared code and resources (pngs, etc)

I have been thinking of creating GIT repositories but was looking for some advice as to what would be the best strategy for setting these up.

对于每个次级项目,我很可能有多个分支机构,将需要对“申请”分项目的每一分支使用哪一种共同代码进行某种控制。

目前,我采用共同守则的方式是将提及该档案的内容复制到“申请”项目中。 我不敢肯定,如果我不敢确定如果我需要共同守则的多个分支,那将是最好的前进道路。

If anyone out there has a similar set up and can advise, I would appreciate it.

问题回答

您应宣布共享代码为submodule

That way, both apps would reference their own commit of your shared code repo.
If you need to do any modification in that shared code repo, you can go in that sub-directory, make them and commit them, but you will need to go back to the parent repo (one of the apps) and commit as well.
See "true nature of submodules".





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签