Yes, you can do exactly what you ask with the file hierarchy you drew. Repo-B will be independent and will not know about Repo-A. Repo-A will track all changes in its own files and Repo-B files.
However, I would not recommend doing this. Every time you change files and commit them to Repo-B, you will have to make transactions in Repo-A. Branching in Repo-B will be messy with Repo-A, and branching in Repo-A will be unstable (problems with deleting folders, etc.). Submodules are definitely the way to go.
kubi Jan 11 2018-11-11T00: 00Z
source share