I want to join two different git repositories into one repository with two branches. Is it possible? How?
+3
A:
Create a new repository, then add both of these repositories as remotes:
git add remote origin1 ...
git add remote origin2 ...
Fetch from both:
git fetch origin1
git fetch origin2
Create a local branch to track a branch of each remote (assuming the master):
git branch branch1 origin1/master
git branch branch2 origin2/master
Ben James
2010-01-05 14:11:34