Reputation: 404
I have the following setup: One git repo (lets call it "libutil"), and a lot of projects using said libutil as a git submodule.
What I want:
I want to tell git that it should only keep a "working copy" of libutil for every project, not store the whole libutil-history dozens of times. One the other hand, those working copies should remain valid git repos, so I'm still able to switch to arbitrary commits when needed (by fetching them from the server).
Now is this possible? And how do I set it up?
Upvotes: 3
Views: 626
Reputation: 12735
This use case seems like a duplicate to "git shallow submodules" discussion:
Upvotes: 1