简体   繁体   English

在git仓库中包含克隆的仓库

[英]Including a cloned repo in a git repo

I'm writing an app in xcode, and I'm using git (though using the github app to commit and manage it, not xcode) for version control. 我正在用xcode编写应用程序,并且正在使用git(尽管使用github应用程序来提交和管理它,而不是xcode)进行版本控制。 I use PXSourceList in the project, which I've cloned to my computer. 我在项目中使用了PXSourceList,该项目已克隆到计算机中。 I include the files as references in Xcode, so this means they aren't part of my git repo which syncs to github. 我将这些文件包含在Xcode中作为引用,因此这意味着它们不属于我的git repo(与github同步)的一部分。 So if someone were to download or clone from github they wouldn't be able to build without getting PXSourceList themself. 因此,如果有人要从github下载或克隆,他们将无法自行构建PXSourceList。 How do I include PXSourceList, so that it is "referenced" in my repository? 如何包含PXSourceList,以便在存储库中对其进行“引用”?

Both on my computer (to my local clone) and on github (to PXSourceList on github)? 既在我的计算机上(到我的本地克隆)又在github上(到github上的PXSourceList)? So that PXSourceList will stay up to date in my repo when changes are made to it by others independant of my repo? 这样,当独立于我的回购协议的其他人对其进行更改时,PXSourceList会在我的回购协议中保持最新状态吗?

Subrepo or git-subtree. Subrepo或git-subtree。 You have to move PXSourceList into your project tree in both cases 在两种情况下,您都必须将PXSourceList移到项目树中

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

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