【问题标题】:git: combine different repositories into one repository with different branches [duplicate]git:将不同的存储库组合成一个具有不同分支的存储库[重复]
【发布时间】:2012-10-09 06:27:14
【问题描述】:

可能重复:
How to combine two branches from two different repositories in a single repository?

目前,我在不同的 git 存储库中为不同的客户提供不同版本的软件。

现在我想将这些不同的存储库合并到一个具有不同分支的存储库中。这怎么可能?

谢谢:)

【问题讨论】:

    标签: git git-branch


    【解决方案1】:
    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
    

    这应该为每个customerX-remote-repository 的每个master 分支创建一个分支customerX

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-05-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-01-25
      • 2012-11-23
      • 2011-02-26
      • 1970-01-01
      相关资源
      最近更新 更多