Question

Is it possible to fork a solution, but only use a part of it? Say I only want 1 out of X number of namespaces, which all resides in different folders. Of course assuming there are no dependency-problems with doing so.

I still want to be able to pull upstream to get the latest changes from the master, but only for the part of the solution that is applicable for me.

Please walk me through the Git-commands needed.

UPDATE: If the solution is just to delete files, then how do I avoid future merge-problems? How do I tell Git that these deletes are the latest and correct changes to my repo?

Was it helpful?

Solution

I think you could do a usual branch and then delete parts you don't need. You still will be able to pull changes (with slight conflicts though), however, obviously, it is quite difficult to push any changes back (only maybe by cherry-pick).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top