GitHub:git拉冲突,请问"merge"如何解决?

GitHub: git pull conflicts, how do you resolve a "merge"?

当我对一个 GitHub 项目进行一组编辑时,其他人提交了他们自己的合并请求,并将他们的编辑合并到项目中。
在我将所有编辑提交到我的项目分支之后,然后输入:

$ git pull upstream master

-- 为了确保我自己的本地文件更新到项目的最新版本,git 抱怨冲突和未合并的文件。
将结果与我的结果进行比较(我保留了副本,因为我根本不信任 Git),我看到了这个...

<<<<<<< HEAD
         True if we are in the middle of sending a multi-part message.
=======
         True if we are in the middle of sending a multipart message.
>>>>>>> e7be4d5a6cbfa6a541f393935a612d12fa58fcb5

(单词 "True" 之后的部分是我编辑的实际行)。

我应该如何解释该部分?

现在,如果我再次尝试拉动,Git 响应:

Pull is not possible because you have unmerged files.

我该如何解决?这就是“git rm <file>”的目的 - 删除我的,拉下当前版本,然后合并回我自己的编辑?

如何查看哪些文件是 "unmerged"?

How do I see which files are "unmerged" ?

像往常一样:git status:寻找提到both modified.
的行 使用“Resolving a merge conflict from the command line”查看更多信息

<<<<===>>>>是受影响区域的合并标记或冲突标记。
冲突标记区域以 <<<<<<< 开始并以 >>>>>>>.
结束 这两个冲突块本身被 =======.

分开

一旦您编辑了文件,只留下您想要保留的版本,添加、提交并执行 git status 以获得进一步的说明。