git - merge 冲突 Git

标签 git egit

我和我的 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.

merge conflict resolution in EGit

关于git - merge 冲突 Git,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10369701/

相关文章:

git - rebase 时排除提交

java - Eclipse + Egit - 将新的 Java 项目添加到远程存储库

egit - 向上游推送新分支

eclipse - 我如何查看 EGit 中单个分支的历史记录以用于 eclipse

git - 带有 Git 轮询的 Jenkins 管道无法运行

git - fork 的 git repo 的端口功能到原始的而不 pull 入整个 fork 的 repo

git - 从 Haskell 中的 git packfile index 获取魔数(Magic Number)

git - 如何在 git (bitbucket/sourcetree) 中重命名和移动分支

android - 在 "Auth failed"对话框之后,现在 EGit 不再询问用户名和密码

eclipse - 如何在使用 Eclipse 和 Git 时修复 ssh 身份验证错误