我最近发现,栏杆或其他一些实体是通过把“< < < < < < < HEAD”所有的地方搞乱我的代码。这是它的一个例子:的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
任何人都知道为什么它的行为是这样的?
我刚刚抵制强烈的冲动击中编辑按钮,并修复合并冲突。 – iblue 2012-08-02 20:00:04
哈哈!一个容易解决的问题;) – 2012-08-02 20:03:49