Open xzhuz opened 6 years ago
https://meisen.pro/article/5a7c6cc7a1aa4013b35bc3eab9e953e9
目前有两个仓库 repo1 和 repo2 两个仓库不一样,现在有个需求需要合并,现在就进行下面的步骤
➜ repo2 git:(master) git add remote other ../repo1.git
➜ repo2 git:(master) git fetch other
➜ repo2 git:(master) git checkout -b repo1 other/master
➜ repo1 git:(master) git checkout master
➜ repo2 git:(master) git merge repo1
接下来,解决合并后的文件冲突。commit之后就可以push到远程仓库了。
https://meisen.pro/article/5a7c6cc7a1aa4013b35bc3eab9e953e9
接下来,解决合并后的文件冲突。commit之后就可以push到远程仓库了。