git поддеретель

 git subtree add --prefix ./prefix/location https://github.com/user/repo branch_name --squash
FishBrawler