0

I have multiple clones of the same remote repo. In order to decrease download time and (hopefully) increase pull speed, one of the clones is read only.

I would like to configure the other clones to pull from the read-only clone by default. Ideally, the read-only can be named ro and the remote repo that'll be pushed to can continue to be called origin.

Is there a way to do this? If so, how?

Noel Yap
  • 18,822
  • 21
  • 92
  • 144
  • Possible duplicate: https://stackoverflow.com/q/45638858/3216427 – joanis Dec 22 '22 at 19:38
  • @joanis, that one is about per-branch, not per-clone. – Noel Yap Dec 23 '22 at 21:57
  • The question is, but isn't this answer about the whole repo: https://stackoverflow.com/a/45644092/3216427 – joanis Dec 23 '22 at 23:04
  • That may be but when someone is looking for an answer, they're going to match by the question they have. If that answer is applicable to this question, it can be added as an answer here. FWIW, that answer mentions branches a lot which, even if it does answer this question, includes a bunch of noise not relevant to this question. – Noel Yap Dec 24 '22 at 19:32
  • Hey, I didn't actually flag your question as a duplicate. I'm just trying to help, if it's not helpful, them my apologies for the noise. – joanis Dec 24 '22 at 23:40
  • I understand you haven't flagged it as an actual duplicate and want to help. I'm addressing the concern that it could be a duplicate and how best to go about it if it were a duplicate. – Noel Yap Dec 25 '22 at 15:47
  • Sounds good, point taken. – joanis Dec 25 '22 at 17:51
  • Thanks for raising the potential issue. It's definitely worth investigating. – Noel Yap Dec 26 '22 at 16:44

0 Answers0