I have 4 clones of same repository of our project on my system.
The reason for this is that we have evolved in terms of technology stack in past 2 years and each of the 4 versions of this evolution requires a different folder structure & eclipse workspace setup. Each version exists on its own branch. To keep supporting old versions for customers I need to have different clones to ease my work so that I don't have to switch branches and change setup accordingly.
I mostly work offline. So, whenever I connect to network, I execute a script that runs git fetch
on each of the clones one-by-one. What I want is to save some network bandwidth in this process. I want to run git fetch
only once on say prime
repository and rest of the repositories must download the code from prime
.
I tried setting prime
as remote to other repositories but it only fetches the locally checked out branches of prime
in the secondary repositories. Is there at all a way to what I want to achieve?