First of all, I read this post but I am unsure it answers my question or not, if it does, it means I did not understand what is explained in it, and maybe some rephrasing or re-explain would help. (also, git filter-branch has a huge warning from git so I'd rather not use it)
So, I have two repositories A and B. B is a very huge repository > 5 Gb. I need B as a submodule of A.
However, B contains the following folders:
|-- Foo |-- Goo |-- Doo
And I only need Goo.
So, checkout the full repository as my submodule is huge and long, and space consuming. I would like my submodule to contains only the Goo folder, and it's history.
Can I do this ?