0

Possible Duplicate:
How to combine two branches from two different repositories in a single repository?

at the moment, I have different versions of my software for different customers in different git repositories.

Now I want to combine this different repositories into one repository with different branches. How is that possible?

Thanks :)

Community
  • 1
  • 1
sbo
  • 951
  • 2
  • 12
  • 25

1 Answers1

3
git remote add customer1 <url>
git remote add customer2 <url>
# ...
git fetch --all
git checkout -b customer1 customer1/master
git checkout -b customer2 customer2/master

This should create a branch customerX for every master branch of every customerX-remote-repository.

KingCrunch
  • 128,817
  • 21
  • 151
  • 173