I'm working with Git programmatically. I have two repos, A and B. I want to clone A into a dir "./foo", then get just the contents of repo B into "./foo". So ./foo will be linked to repo A, but have all the files from both.
Is there any efficient way to do this? Right now, my pattern looks like this:
clone repoA into ./foo clone repoB into a temp directory delete .git from temp directory copy contents of temp directory into ./foo This works, but is a little slower than i'd like. Any better way?