We have a single server which is being used by multiple users. Disk space is quite the limitation as our git repo is quite huge and every time someone clones it, it consumes 130G of space.
I understand that git is not designed to be centralised workflow but this is a very peculiar situation. We thought about upgrading the hardware but that's quite a long path as it's not a cloud instance.
I tried fiddling with git worktree
but I soon ran into permission issues. My Ideal setup would be a single repo and multiple users can push and pull via through this.
I looked into the previous threads on this but unfortunately nothing solid advice over there and they are quite old threads. So, any new advice would be highly appreciated.
Perhaps look into git subtree or git submodule to divide your big git repo into several smaller ones. It still stays the same big repo, but can be more manageable.
Notice for submodules:
So when you say
it only downloads the main repo and the folders of the sub modules. You can then specify which submodule files you want to download with.
Thus, it only clones the files for the submodule and not all the files.