2014-01-14 21 views
0

this repository上工作时,以下声明(与<!-- ?? -->一起被注释)被添加到commit中,但我们不知情或没有任何明显的行为。它们似乎是两个提交的HEADSHA-1提交中的额外文本来自哪里?

+<<<<<<< HEAD <!-- ?? --> 
17 17 
     <!--<texture>icon-video-sml.png</texture>--> 
18 18 ... 
33 33 
     <visible>Container.Content(musicvideos)</visible> 
    34 
+======= <!-- ?? --> 
    35 
+  <texture>icon-video-sml.png</texture> 
    36 
+>>>>>>> 987433c381cd8b8b459c569712c282f94dd430db <!-- ?? --> 
34 37 
    </control> 
... 
37 42 
     <posy>35</posy> <!--to display info abt the folder in the videos window at the top right corner--> 
    59 
+<<<<<<< HEAD <!-- ?? --> 
54 60 
     <visible>Skin.HasSetting(homemenu-horizontal) | [!Skin.HasSetting(homemenu-vertical) + !Skin.HasSetting(homemenu-horizontal)]</visible> 
55 61 
     <posy>13</posy>  <!--prints "(no of files)"--> 
    62 
+======= <!-- ?? --> 
    63 
+  <posy>13</posy> 
    64 
+>>>>>>> 987433c381cd8b8b459c569712c282f94dd430db <!-- ?? --> 
56 65 

截图:

除了这一点,我们的代码库开始甚至纠正问题(removing these lines)后执行错误(显然)。

那么,这是什么额外的文字?它从哪里来的?我们应该怎么做呢?

回答

1

这些是合并冲突标记。它们表示你合并了两个以不同方式在相同位置更改文件的分支。你不能只删除它们,你需要手动合并文件,并决定你想保留哪些更改以及哪些不更改。

+0

有没有办法在命令行中处理这些从Git内? – asheeshr