Am preparing a couple of projects, P1 and P2, to host on GitHub. Both projects are part of a larger project, P, and have source code in common. For this reason, I’d like to host the big project, P, on GitHub, as well as both P1 and P2. On the P1 and P2 pages, I will explain this situation, and I would like the P1 clone url to pull just the P1 source files out of the big P project , and the same for the P2 project. The big P project can have the usual clone url, if that is what someone wants to do – get all the source code for both projects.
So, my question is how to set up the clone urls on the P1 and P2 pages do this?