Git pull into a specific directory

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

+3
source
1

, submodules projectB. . http://book.git-scm.com/5_submodules.html

, projectA projectB, projectB. projectB , projectA. projectB projectA, projectA.

+2

All Articles