Keep a fork in Git with two or more different sources and deleting directories

1

I'm working with QEMU to do continuous testing and integration of a project using OpenCV and TBB , however, in QEMU that uses only a few features of the original, added with other features added by a second Fork .

Not all directories are required for my Fork, so I would like to use Git so that it would just checkout some directories, I know I can do that by saying which directories I want at the checkout limiting so what is downloaded to my Workspace.

But I have seen that Git has a more specific feature called Sparce Checkout , but it does not yet understand how to use it in this perspective.

In summary, I have an xyz and another zwk repository where I need to get each of the directory groups:

  • A, B, F, R
  • B, G, R

Finally I would have a new directory structure:

  • A, B, F, G, R

The remaining files that may exist in each original repository are ignored.

As you can see there are two directories in common, so I will have to do a merge from two directories and of course the conflict will have to intervene manually and generate a new commit with the adjustments as needed. Otherwise everything runs automatically I will proceed with the default commit and compiled package generation.

You can use the GIT for this task of joining directory groups into a new Fork > as a repository)

    
asked by anonymous 21.10.2016 / 09:16

0 answers