mohamed: 2:31
msaid: 2:41
<<<<<<< HEAD
mohamed: 2:52
=======
msaid: 2:55
>>>>>>> msaid_test/test
Run Code Online (Sandbox Code Playgroud)
这是将分支与主分支合并后的最终产品.
这是合并前master分支中文件的内容:
mohamed: 2:31
msaid: 2:41
mohamed: 2:52
Run Code Online (Sandbox Code Playgroud)
这是msaid_test/test分支中文件的内容:
mohamed: 2:31
msaid: 2:41
msaid: 2:55
Run Code Online (Sandbox Code Playgroud)
我试图学习如何使用Sourcetree和Bitbucket解决冲突,为什么这些线出现?<<<<<<< HEAD和>>>>>>> msaid_test/test.什么是解决冲突的正确方法?
content common to both branches
<<<<<<< HEAD
content only in HEAD, aka the master branch
=======
content only in other_branch
>>>>>>> other_branch
content common to both branches
Run Code Online (Sandbox Code Playgroud)
琴弦<<<<<<< HEAD,=======和>>>>>>> other_branch只是标记,指出哪些文本是存在于每个分支.您可以自行获取此信息并编辑文件以确定正确的版本.这可能包括删除标记,通常包括选择一组内容或另一组.有时您会选择写新内容,或以其他方式合并更改.