将子目录与其他几个分开,并将其作为我自己的一部分 [英] Forking sub directories out of several others and making it part of my own

查看:149
本文介绍了将子目录与其他几个分开,并将其作为我自己的一部分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是关于
的后续问题在GitHub上分配一个存储库的子目录并使其成为我自己的一部分回购。我想要的是从几个不同的上游制作一个子目录集合。

我在上面的答案中看到fist命令是 git clone ,这使得来自几个不同上游的分叉变得困难。

那么,有可能吗?你可以假设地回答,或者使用下面的具体例子:



收集到 MyPythonCol 文件夹下的我的回购库中,



基本上我只想要曲目远程回购,无意修补上游。



感谢

解决方案

如果您使用 repo - Multiple Git Repository Tool ,您可以添加一个元素链接文件在您的清单文件中为您想要使用的子目录创建符号链接。请阅读 manifest-format.txt 更多细节。


This is a follow up question on "Forking a sub directory of a repository on GitHub and making it part of my own repo". What I want is to make a collection of sub directories from a few different upstreams.

I see the fist command is git clone in the answer above, which makes forking from several different upstreams difficult.

So, is it possible? You can answer hypothetically, or use the following concrete examples:

Collect in to my repo under the MyPythonCol folder, of

Basically I just want to track the remote repo, with no intention to patch upstream.

Thanks

解决方案

If you are using repo - The Multiple Git Repository Tool, you can added a Element linkfile in your manifest file to create symbol link for those sub directories you want to use. please read manifest-format.txt for more details.

这篇关于将子目录与其他几个分开,并将其作为我自己的一部分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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