我正在使用以下步骤将所有分支复制到新的存储库中。
git clone --bare https://github.com/exampleuser/old-repository.git
# Make a bare clone of the repository
cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git
# Mirror-push to the new repository
现在,我已经在 old-repository.git
中添加了两个新的分支,想要将这两个分支移动到 new-repository.git
中。
需要执行哪些 Git 命令来完成它?
old-repo
迁移到new-repo
。除了old-repo
中新创建的 2 个分支外,我已经将所有分支移动到new-repo
。 - meallhour