Maintaining a Fork in Git with two or more different sources and deleting directories

Asked

Viewed 19 times

1

I’m working with the QEMU for testing and continuous integration of a project using the Opencv and TBB, but need to maintain a Fork of QEMU that uses only a few resources from the original, added with other resources for a second Fork.

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

but I saw that the Git has a more specific resource, called Sparce Checkout, but cannot yet understand how to use it in this perspective.

In summary I have a repository Xyz and another zwk where I need to get each of the directory groups respectively:

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

Finally would have a new directory structure:

  • A, B, F, G, R

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

As you can see there are two directories in common, so I’ll have to make one merge from two directories and of course adventurous conflict I will have to manually intervene and generate a new commit with the adjustments necessary. Otherwise all run automatically mind I will proceed with the commit standard and compiled package generation.

There are ways to use the GIT for this task of joining groups of directories into a new Fork (understand Fork as a repository)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.