谁能帮我这个,
我的文件夹结构是这样的:
Repo1 [Repository]
|- branch1 [branch]
Repo2 [Repository]
|-branch1 [branch]
现在,我需要将文件差异更改从合并Repo1/branch1
到Repo2/branch1
我怎么做。我正在使用git [bitbucket]作为源代码管理。对于GUI,我正在使用sourcetree
谢谢,
克鲁蒂克
如果两个“ repos”都是同一个存储库的派生,这实际上很容易。如果它们完全是完全不同的存储库,则合并会有些混乱,但肯定是可能的。
基本步骤:
cd Repo2/branch1
git remote add Repo1 ../Repo1/branch1/.git
git fetch Repo1
git merge Repo1/branch1
那应该触发一个常规的“ git merge”场景。即使两个存储库实际上是100%分开的,Git仍会进行合并,但将无法自动合并文件之间的任何差异。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句