将子目录与其他几个分开,并将其作为我自己的一部分 [英] Forking sub directories out of several others and making it part of my own
问题描述
这是关于
的后续问题在GitHub上分配一个存储库的子目录并使其成为我自己的一部分回购。我想要的是从几个不同的上游制作一个子目录集合。
我在上面的答案中看到fist命令是 git clone
,这使得来自几个不同上游的分叉变得困难。
那么,有可能吗?你可以假设地回答,或者使用下面的具体例子:
收集到 MyPythonCol
文件夹下的我的回购库中,
- 来自 子目录 bitbucket.org/hrojas/learn-pandas/srcrel =nofollow noreferrer> https://bitbucket.org/hrojas/learn-pandas/src
-
docs
来自 https:/ /bitbucket.org/jblawatt/python-simple-di/src
基本上我只想要曲目远程回购,无意修补上游。
感谢
如果您使用 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
- The
lessons
sub directory from https://bitbucket.org/hrojas/learn-pandas/src - The
docs
sub directory from https://bitbucket.org/jblawatt/python-simple-di/src
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屋!