I'm not a git expert.
Scenario: local linux running gitlab git server.
I need to make several patches to a linux kernel. So i want one git to hold the entire tree.
However, i would prefer that either the local git will only hold the patches and or new files. Or. To the least, will hold a copy of it but will be aware where it pulls from if i want to grab baseline updates.
All this - while the actual dev machine that will clone from my local git server machine will receive an entire copy of the tree.
What would be the best way to achieve this?
Note: I might need to apply these features to several different kernels. So I'd prefer storing just the changes and so I could easily switch baselines.
Any ideas?