我最近发现 rails 或其他一些实体通过将“<<<<<<< HEAD”放在整个地方弄乱了我的代码。这是它的外观示例:
Class ExampleController
def foo
bar = 1
<<<<<<< HEAD
if bar == 1
puts "bar is one"
else
puts "bar is not one"
end
=======
if bar == 2
puts "bar is two"
else
puts "bar is not two"
end
>>>>>>> 17fb60436a4de2e0...
end
end
有谁知道它为什么会这样?