I have two independent repositories (A and B) and would like to merge one repo. (B) into another one (A) with keeping the whole history of both. What do to?
% cd projectA
% git remote add test ../path/to/other/repo && git fetch test
Adds a new branch called test which pulls in ALL branches from the /other/repo. git fetch test pulls code for all branches