My situation is this:
I have git Repo A, which contains a folder that links to material from another "project" stored in git Repo B. The folder is really just a symbolic link, so it does not actually exist.
What I would like to do is "git pull" from Repo B to this folder ONLY, and then go back to Repo A, saving as much of the story as possible (if the changes should go the other way).
I could just manually download all the files, but that would lose the whole story. In addition, I could just have 2 separate repositories and a link, but I would like to try and merge project B into project A. If possible,
Does git have something in the lines ....
git remote add projectb GITURLFORB
mkdir projectb
git add projectb && git commit projectb
git push origin master
git pull projectb master --into_folder projectb
git push origin master
thank
source