我和我的 friend 从主存储库(上游)fork。昨晚,我们在本地机器上有这个存储库的相同版本。然后我添加了一个新功能,我的 friend 也添加了另一个新功能。我的 friend 向主存储库 pull 请求,我已将此 pull 请求与上游存储库 merge ,没有冲突。当我从上游获取并与我的主分支 merge 时,它会发生冲突。 在这种情况下我应该怎么做来解决冲突? (解决冲突后上游仓库应该有2个新特性)
最佳答案
请注意,您还可以直接从 Eclipse/Egit 本身解决 merge 冲突:
参见“Egit: Solving Merge Conflicts”:
You can manually edit the text on the left side or use the Copy current change from right to left button to copy the conflicting changes from right to left.
Next step is from the context menu of the file, to select Team -> Add to index. Than commit.
关于git - merge 冲突 Git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10369701/