例如要迁移reg分支:
B目录下:
git checkout -b reg
A目录下:
git remote set-url origin 仓库B地址
git pull origin reg --allow-unrelated-histories
git push origin reg
例如要迁移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
网友评论