Forking sub directories out of several others and making it part of my own

北战南征 提交于 2020-01-05 04:12:50

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/45201567/forking-sub-directories-out-of-several-others-and-making-it-part-of-my-own

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!