R
R
Roman Zanevsky2019-08-21 17:45:55
git
Roman Zanevsky, 2019-08-21 17:45:55

How to split a large git repository?

In my practice, I came across a terrible thing in the form of a 2TB git repository. Naturally, you can’t get enough of such SSDs for the whole team. Is it possible to split this repository in a way that would have this big remote on the git server, but split into modules, each of which could be cloned as a local repository? Those. a module with raw code and packed resources, a module with 3D model sources, a module with binaries and packed resources for testing, and so on. Let's say 3 modules of 1TB, 0.5TB and 0.5TB. At the same time, so that when pushing commits to this module, they also get into a large remote. And also, ideally, have a common commit history.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
P
panasyuk, 2019-08-22
@panasyuk

Maybe git submodules?

T
tsarevfs, 2019-08-21
@tsarevfs

https://help.github.com/en/articles/splitting-a-su...
Can use https://git-lfs.github.com/ for large files

A
Andrey Grigoriev, 2019-08-22
@eigrad

No need to store large files in git, use Git LFS or DVC.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question