Here is my directory structure
main folder (git repo 1)
subfolder 1 (git repo 2)
subfolder 2
I have a bigger project and I keep track of all changes in the main and child folders in repo 1. However, for subfolder 1 I have a common repo 2 with a co-author. An important detail is that some files in subfolder 1 are versioned in repo 2 but not in repo 1, and viceversa.
Is it possible to simply init the main folder on repo 1 and subfolder 1 on repo 2, as if they were independent projects, or are there any shortcomings to this solution?
Are there any advantage from using submodule or subtree? Notice that I don't care having the same log/hostory in repo 2 and repo 1, I am happy to commit to the two repos independently.