what is the best solution to solve this problem. We have a big repo. Due to security restriction people are not allowed to have copies of files on mobile workstations like laptops. But there are folders within the repo that are excluded from this rule. The goal is to be able to easily develop inside this subdirectory and pull and push and handle branches of the main repo.
So the question is here is there anyway to clone/checkout just a subdirectory from a git repo without having a full copy of the repo locally. Doing my research I came across some solutions. Maybe someone can help clarify which would be the easiest way to solve this problem.
- sparse checkout (but you have to have a full copy of your repo in .git folder)
- submodules (seems to be hard to maintain and collaborate)
- subtree (looks promising)
- git archive (checkout a directory but can you update and push back)
Thanks in advance for any help.