美文网首页
git迁移仓库A的几个分支到B仓库

git迁移仓库A的几个分支到B仓库

作者: 隔壁老王z | 来源:发表于2021-12-07 14:28 被阅读0次

    例如要迁移reg分支:

    B目录下:
    git checkout -b reg
    A目录下:
    git remote set-url origin 仓库B地址
    git pull origin reg --allow-unrelated-histories
    git push origin reg
    

    相关文章

      网友评论

          本文标题:git迁移仓库A的几个分支到B仓库

          本文链接:https://www.haomeiwen.com/subject/jkxaxrtx.html