I have a root git directory. I would like to put under the root directory another independent git repository as subdirectory.
I am using repo so I can't use submoudles. I thought to make a subdirectory symbolic linked to a far stand alone directory. The far outside directory will contain the new git repository.
I saw there is another option Detach (move) subdirectory into separate Git repository using git subtree
.
- Can I use it when working with the repo tool?
- Is it better to use subtree than the symbolic link solution?