Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 如何将来自两个不同存储库的两个分支合并到一个存储库中?
目前,我在不同的 git 存储库中为不同的客户提供不同版本的软件。
现在我想将这些不同的存储库组合到一个具有不同分支的存储库中。这怎么可能?
谢谢 :)
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
这应该为每个-remote-repositorycustomerX的每个master分支创建一个分支。customerX
customerX
master