git 冲突符号未显示

git conflict notation not showing

我在尝试合并两个文件时遇到冲突:

CONFLICT (content): Merge conflict in user.py

当我查看user.py时,没有我习惯的git-conflict-notation/mark:

<<<<<<< HEAD
Hello world
=======
Hola mundo
>>>>>>>

可能是什么问题?

我猜你可能启用了 git-rerere。

该设施[re]记录了过去冲突的[re]解决方案。因此,下次您将同一主题分支合并或变基为一个(非常)相似(修订)的分支时,git [重新]记住您选择的冲突解决方案并为您应用它们。

如果您使用主题分支或频繁变基,这非常棒。

但是,如果您 need/prefer 完全控制,请禁用它:

git config rerere.enabled false