我有以下的 git 树:
branch v2 => / --- [lots of work] --- [new version] --- ref_d
/
root --- ref_a --- ... --- ref_b (project reset)
\
branch v1 => \ --- [some works] --- ref_c
由于v1和v2非常不同,两个不同的团队将维护v1和v2,我想要将两个分别的分支放在不同的Git存储库中:
repo_v1 : from root to ref_c
repo_v2 : from ref_b to ref_d
我该如何做到这一点? 谢谢。
git remote add new_repo git@xxxx
(参见任何文档)。然后我推送它,它完美地工作了,我在我的专用存储库中得到了目标分支和提交历史记录。 - Poutrathor