0

I have a submodule called sub1 which is used by multiple project repos (e.g.: proj1, proj2, proj3, etc.):
enter image description here
sub1 is a pretty big submodule.

Each time I create a new project, it has to contain the sub1 submodule, which heavily increase the memory usage on my hard drive.

Is there a way to solve this issue ?

1 Answers1

0

Use --reference clones or add work trees to have multiple checkouts from just one copy of the object db, or if everybody's always on some particular submodule version you can share a single checkout.

jthill
  • 55,082
  • 5
  • 77
  • 137