Git sub-repository with URL relative to its parent repository

28 Views Asked by At

Currently, I have a normal repository A in GitHub, and I want to incorporate that repository A as a sub-repo of another repository B, then, remove original repository A and keep its copy within B. When I attempt this with Git submodules, the sub-repo becomes unusable.

After a lot of searching, I'm giving up with submodules, since I realize they are merely links pointing to some commit in an external repository.

Does exists a way to emulate submodules behaviour without loosing the sub-repo history when removing the original repository A? the best approach I've found so far is this, but it doesn't convince me since it mixes both super and sub-repo histories.

0

There are 0 best solutions below